0.0.2 • Published 6 years ago

megadraft-iframe v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Megadraft Build Status npm version


This is a very specific custom package made for iframes with DraftJs and megadraft and our own architecture. Use only if :

  • You are building a system that uses megadraft in an iframe and can only use an iframe
  • You have installed react-frame-aware-selection-plugin to fix the onSelect react issue with iFrame
  • You do not care about using hacked npm packages that are waiting for an official release
  • You accept that this won't be supported and will disappear when pull request #765 is merged on draftjs and pull request #195 is merged in megadraft

Here is the official README, I may delete it if I notice too many downloads

Rich Text editor built on top of Facebook's draft.js (Work in Progress)

Discussion and Support

Join the #megadraft channel on the DraftJS Slack team!

Live Example & Documentation

Checkout our website with a live demo!

Developing

To run the development server and see the examples:

git clone https://github.com/globocom/megadraft.git
cd megadraft/
make setup
make run

Then visit http://localhost:8080/#/dev on your browser.

To run local tests:

make unit

To lint local source files:

make lint

To run tests and lint:

make test

Dependencies

Megadraft depends on Sass to build style assets.

Importing the default styles

Megadraft ships with a default styling available at this location in the installed package: node_modules/megadraft/dist/css/megadraft.css.

Documentation

Plugins

Checkout the docs for information about plugin structure. To help in this process there is a Yeoman Megadraft Plugin Generator.

License

Megadraft is licensed under the MIT license.

Third Party

The Megadraft website uses a picture from Stocksnap.io by Tim Marshall licensed under CC0 license.

Landing page uses a Megadeth picture by Ted Van Pelt licensed under CC-BY.