Quill is great JS library that does rich text (thanks to @joinlook for finding it)
(We fixed the error he mentioned, here it is in action:)
Here’s all the JS you need to run it:
<!-- Initialize Quill editor -->
<script>
var quill = new Quill('#editor-container', {
modules: {
toolbar: [
[{ header: [1, 2, false] }],
['bold', 'italic', 'underline'],
['image', 'code-block']
]
},
placeholder: 'Compose an epic...',
theme: 'snow' // or 'bubble'
});
</script>
Here’s a clone link for that app: