wsk3201 / draft-wysiwyg

Draft-JS experiments with drag&drop, resizing, tooltips, WIP

Home Page:https://draft-wysiwyg.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

draft-wysiwyg

Draft-JS is really hot right now and here is a try for reproducing wysiwyg functionality using draft.

Warning, this repo is WIP! There are still bugs, The API will most likely change, only tested in Chrome/Safari.

Demo

https://draft-wysiwyg.herokuapp.com/

Features

Currently, these are the features that work

  • Drag & Drop uploading
  • Inline toolbar for text
  • Block drag/drop
  • Block resizing (horizontal/vertical with absolute/relative sizes and aspect ratios)
  • Block toolbars
  • Interactive Youtube block
  • Block keydown handling to remove blocks (backspace) or move cursor to next/previous block
  • Nesting draft-js
  • Links
  • Some more things

Installation

npm install draft-wysiwyg
or
sudo npm install draft-wysiwyg

Usage

Just check out the example:

Sorry, didn't get to write documentation yet!

Todo

There is a lot of stuff that needs to be done

  • Themes
  • Clean and optimize code, figure out proper API, make it more customizable
  • Write documentation ...

Contributing

Pull requests are very welcome, feel free to commit your ideas!

About

Draft-JS experiments with drag&drop, resizing, tooltips, WIP

https://draft-wysiwyg.herokuapp.com/

License:MIT License


Languages

Language:JavaScript 99.4%Language:CSS 0.6%Language:HTML 0.0%