https://github.com/jan4984/draft-dnd-example
a drag and drop example for draft-js editor by react-dnd
https://github.com/jan4984/draft-dnd-example
dnd draft-js
Last synced: 20 days ago
JSON representation
a drag and drop example for draft-js editor by react-dnd
- Host: GitHub
- URL: https://github.com/jan4984/draft-dnd-example
- Owner: jan4984
- Created: 2016-12-14T07:00:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-26T03:06:00.000Z (almost 8 years ago)
- Last Synced: 2024-04-09T23:54:29.677Z (over 1 year ago)
- Topics: dnd, draft-js
- Size: 108 KB
- Stars: 15
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-draft-js - Draft drag and drop demo for mobile browser
README
# draft-dnd-example

a drag and drop example for draft-js editor by react-dnd
* check [draft-js](https://github.com/facebook/draft-js) with commit 2de3c450ff7882e24d9abd4d7a9017cd8905d0c7
* apply the patch file `dnd-demo.patch` with `git apply dnd-demo.patch`
* check the live demo in `examples/draft-0-9-1/dnd/dnd.html`
**NOTE:**
_the demo is for mobile browser, please run it in mobile browser or Chrome mobile emulator._
_if you need run the dnd.html by `file://` protocol other than `http://`, please copy the code in dnd.js into ``._