Decided to πŸ™…β€β™‚οΈ DITCH the rich text editor library that I use and BUILD ONE MYSELF 😱 All the rich text editor libraries I've tried are really limiting. I feel like doing it myself will mean I can make it better faster!! I've got some cool ideas in store.

Ethan Author

Hahaha my code is definitely not that neat πŸ™ˆ But it's actually a lot easier than you'd expect β€” check this out https://code.tutsplus.com/tutorials/create-a-wysiwyg-editor-with-the-contenteditable-attribute--cms-25657

0 Likes
Ethan Author

I've been able to get a reasonable one working in just an hour or two.

0 Likes
Arnav Puri

If you do it, please consider open sourcing 😜 I need one for LMS I am building

0 Likes
Arnav Puri

woah looks doable. I will try it, just one more question, are you storing the content from editor as html text in database?

0 Likes
Ethan Author

Well I don't really need to store it in a database or anything. I just store it in a variable. But to get the contents it's literally as simple as document.getElementById('myContentEditable').innerHTML.

0 Likes

Please sign in to leave a comment.