Posted on: 2014-03-18 14:37:02.000
Just found this, it's pretty cool:
http://jhtmlarea.codeplex.com/
It lets you turn any <textarea> in your code into a full-fledged WYSIWYG text editor. It translates everything into HTML. You can even do rich copy/paste from Excel, Word, PowerPoint, another web page, or Google Docs.
I've just tested it and it works perfectly in Rockets.
Of course, there are some caveats-- the HTML that you get from copying from Word or Google Docs is basically unreadable by humans, and of course you don't want to let people embed HTML into their posts anyway because of cross-site scripting issues. Rockets (the blog) right now strips out all HTML code for safety.
But if you just input the raw HTML as $POST data and manipulate it afterwards, it could be a very useful way to let people enter rich text into, say, a content management system.