draft-cljs

Hack to use draft-js editor with ClojureScript & re-frame simplier and without problems with state management

Usage no npm install needed!

<script type="module">
  import draftCljs from 'https://cdn.skypack.dev/draft-cljs';
</script>

README

Draft-cljs

This is a hack to use draft-js editor with ClojureScript and without state-related problems.

draft-cljs is based on draft-js-plugins-editor (https://github.com/draft-js-plugins/draft-js-plugins) since version 2.0.0.

Installation

draft-js-plugins-editor-based version:

npm install --save draft-cljs@2

draft-js-based version:

npm install --save draft-cljs@1.0