1.0.2 • Published 3 years ago

slatejsx v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

install

npm install slatejsx

living demo

http://seditor.open.heyphp.com/

usage

import SEditor from 'slatejsx';
import 'slatejsx/dist/index.css';

const config = [
  {
   "type": "paragraph",
   "title": "h1",
   "children": [
    {
     "text": ""
    }
   ]
  }
 ]

function App() {
  return (
        <SEditor
          value={config}
          plugins={[]}
          readOnly={false}
        />
  );
}

export default App; 

···