As I was creating my blog-o-rama demo, I got to wondering about the best way to allow an app user to input HTML (such as the content of a blog post) and then how to render it on the page so that it’s styled properly.
I know other folks have created blogs, so I’m curious what approach you took. In the interest of expedience, I simply didn’t use HTML and just used a text element for output. But is there a best practice for this type of thing?
The rich text input by Bubble is fine(ish) for this (it’s a built-in, but you must install it via the plugin tab).
And then you just display what they edited/input in a text element. The styling automagically appears (lists, bulleted lists, bold, italic, whatever).
There are many other rich text inputs as well, of varying degrees of quality.
If you DO mean raw HTML code, I suppose a great plugin input for that does not exist at the moment. (Like surely there is something better than the inputs Bubble uses in plug-in editor, etc.)
Thanks, @keith! Yeah, I mean styled text. I’m just in a Word[bleh]Press state of mind, so I was thinking along those lines. I was unaware of that plugin, so I’ll give it a try. I did run across the CKEditor, but haven’t actually tried it yet. Sounds like styled text plugin is the way to go. I don’t want/need anything too fancy.