HTML5 rich-text inside textarea
html, javascript, rich-text-editor, syntax-highlighting, textarea
Solution
Whitout jQuery
If what you are looking for are NO-jquery tools (pure HTML/CSS + basic JS) as us, then some of the best options found (in 2016) are:
- wysihtml5
- Squire
- ckeditor
- widgEditor
Nevertheless, those in the list above all convert the element (textarea) into an iframe, so they weren't exactly what we were searching for, finally we found this one which respects the original element (divs or so, but if you use textarea it does creates an additional div), allowing full straightforward JS WebApp development:
- nicedit
We hope this helps you too!
Problem
I heard that the new HTML5 will add rich text capability to textareas (it will make them more flexible), so you can do stuff like code syntax highlighting editors without very nasty javascript (like creating iframes and stuff). Is this true? Are there browsers with support for it yet? And where can I find some API?