canner-slate-editor
Another rich text editor using Slate framework.
Installation
$ npm install --save canner-slate-editor
Features
- Support full screen edit mode
- Support inline toolbar
- Support inline sidebar
- Support markdown syntax, support list: https://github.com/Canner/slate-md-editor#feature-toc
Usage
// @flow;;; ; const initialValue = Value; Component<* value: Value> // Set the initial state when the app is first constructed. state = value: initialValue { const value = thisstate; const onChange = this; return <div style=margin: '20px'> <CannerEditor value=value onChange=onChange /> </div> ; } ReactDOM;
see https://github.com/Canner/canner-slate-editor/blob/master/docs/index.js
Start example server
npm start
License
Apache 2.0 Canner