Quill is a modern WYSIWYG editor built for compatibility and extensibility https://quilljs.com/
![]() |
11 years ago | |
---|---|---|
demo | 11 years ago | |
doc | 11 years ago | |
lib | 11 years ago | |
scripts | 12 years ago | |
src | 11 years ago | |
tests | 11 years ago | |
vendor | 11 years ago | |
.gitignore | 11 years ago | |
Gemfile | 11 years ago | |
Gemfile.lock | 11 years ago | |
Gruntfile.coffee | 11 years ago | |
Makefile | 11 years ago | |
README.md | 11 years ago | |
package.json | 11 years ago | |
scribe.gemspec | 12 years ago |
Cross platform rich text editor built with coauthoring in mind.
var editor = new Scribe.Editor('editor') // 'editor' is id of dom container
See Tandem for details on deltas.
Events names are accessible through Scribe.Editor.events
You can create a toolbar to assist in formatting the editor.
var toolbar = new Scribe.Toolbar('toolbar', editor) // 'toolbar' is the id of dom container
Any DOM node with the following classes that is clicked will trigger the corresponding format change:
Toolbar will listen to selection changes and will add/remove the 'active' class to the corresponding DOM node.
Any DOM node with the following classes that is changed (change DOM event, ex. ) will trigger the corresponding format change:
Toolbar will listen to selection changes and will set the corresponding DOM node value to the selected text value.
Install dependencies
npm install -g grunt-cli phantomjs mocha-phantomjs
npm install
bundle install
We use grunt to compile coffeescript, sass, and haml
grunt
Until we write a script, version numbers will have to be updated in the following files:
To run some of the tests you will need phantomjs.
Visit build/tests/unit.html to run unit tests or run:
make unit
You can run the unit tests on all browsers on your machine by running:
make testem
You can also test on different operating systems or browsers not installed on your computer. To set this up run:
./node_modules/.bin/browserstack setup
Username: StypiAPIUser
Password: tandemtype
Tunnel private key:
Tunnel API key: m2LGGyTRgKd453bAQhcb
To be clear the tunnel private key should be left blank. Then to run on the remote browsers run:
make testem-remote
For webdriver unit tests, run:
make webdriver-unit-chrome
make webdriver-unit-firefox
For the fuzzer, run:
make webdriver-fuzzer-[browser]
make webdriver-fuzzer-[browser]-replay _replay_file_
Possible values for _browser_
are chrome
, internet_explorer
, or firefox
.
_replay_file_
must be the absolute path to the file the fuzzer creates after a failed run.
This file contains the final edit that caused the fuzzer to fail, so that you can replay the edit until you fix the bug.
In order to run any Webdriver tests against Chrome or IE, you'll need to download ChromeDriver or InternetExplorerDriver and add it to your system's path. Support for Firefox is built in and requires no special downloads.
The fuzzer currently works against IE 9 & 10, Firefox 19 - 21, and Chrome 26.
Install node-jscoverage and run
make coverage
tandem-core.js
underscore.js