A batteries-excluded rich text editor based on Draft.js. :memo::cocktail:
This is a work in progress. It is intended to be integrated into Wagtail. Try a demo now.
npm install --save draftail
npm install --save draft-js@^0.9.x draftjs-utils@^0.3.2 immutable@^3.x.x react@^15.x.x react-dom@^15.x.x
There are other, not so explicit dependencies at the moment:
- jQuery 2, separately loaded onto the page.
- Specific styles from Wagtail, including its icon font.
- ES6 polyfill (like for Draft.js)
Development
Install
Clone the project on your computer, and install Node. This project also uses nvm.
nvm install
npm install
./.githooks/deploy
Working on the project
Everything mentioned in the installation process should already be done.
nvm use
npm run start
npm run lint
npm run test
npm run
Publish
git release vx.y.z
npm run dist
irish-pub
npm publish