Auto-Saving Rich Text with RhinoEditor
I feel like at various times over the years, all I’ve wanted is an attractive, drop-in rich text editor which can also auto-save by posting the form it’s in. Easy to use, easy to style, easy to customize.
Well, Konnor Rogers(who never ceases to amaze me) to the rescue! His new RhinoEditor component was built to be a replacement for Trix , a popular editor from Basecamp which may be easy to use for the public but is not so easy to customize and work with from the developer side. While it offers support for Rails ’ ActionText framework, you can actually use it apart from Rails easily as long as you don’t need file attachments (which I didn’t for the Notes editor I just launched over at The Spicy Web Courses ).
Here’s a CodePen demonstrating how you can load it up, wrap it in a form, tweak some styles along with disabling file attachments, and generally get it working with minimal fuss.
I’m quite excited about RhinoEditor (which itself is built on top of the solid foundation of ProseMirror / TipTap) because it looks slick and it’s delivered as a web component—which means you can drop it right in pretty much anywhere. Groovy. 😎