The Ruby on Rails and ClojureScript experts

Dec 2, 2018

I created an example app to demonstrate how to integrate the SlateJS editor into a re-frame (and reagent) ClojureScript app.

It’s an advanced use case with the following features:

  • Multiple editable sections exist on the page. One can be edited at a time. Select a section to edit by clicking on its card.
  • Shared toolbar, separate from the editor. Acts on the currently selected editor.
  • Bold and italic formatting via toolbar or keyboard shortcuts.
  • Persistence of edited text into re-frame app-db (as HTML).
  • Used in production with 1K editable sections on a single page.

View the demo.

View the source code.