slate-article-editor

Rich text editor powered by Slate.js and React which supports HTML editing

Usage no npm install needed!

<script type="module">
  import slateArticleEditor from 'https://cdn.skypack.dev/slate-article-editor';
</script>

README

Slate Article Editor

Rich text editor powered by Slate.js and React which supports HTML editing

Demonstration

npm run dev

and then open https://localhost:9000

Usage

import { ArticleEditor } from 'slate-article-editor';

<ArticleEditor
  html={`<div>Greate article</div>`}
  onChange={/* handle html change here */}
/>

TODO

  • Add .npmignore

Bugs

  • In some cases with table Chrome remove cmd+A selection