News for hackers. Stuff that matters.
Re:Quill – A cross browser rich text editor with an API by ZenoArrow on Sunday October 25, 2015 @12:28PM (#10447301)
Out of curiosity, what are the main use cases for RTE's? I've been using Windows for over 20 years and in that time I can think of only a handful of times I've ever used WordPad.
Re:Quill – A cross browser rich text editor with an API by DCoder on Sunday October 25, 2015 @01:03PM (#10447437)
Websites. RTEs are a necessary evil there. If you want to post some text on your website (an announcement, press release, anything), your options are plain text, RTE, or non-WYSIWYG solutions such as Markdown/HTML, which are far outside a non-technical user's comfort zone. Lots of clients (well, their secretaries) copy-paste articles from Word (sent to them by marketing, sales, legal, press teams) into the website, and that requires an RTE with:

* basic HTML markup (headlines, paragraphs, lists...)

* HTML tables

* images (data:// URIs are good for handling pasted images) and an image/file browser, complete with some image processing that rejects or shrinks down giant images without ruining the image quality, because people will upload giant JPEGs straight from their phone if you let them (naturally, file uploads come with their own cans of worms like server security, disk space, file permissions, growing backups, etc.)

* black magic to cope with Word's markup

Don't forget to make sure that the end result looks consistent with the rest of the site without the users having to manually set the font family/size on all their text... and that the editors can't turn off the RTE and post raw HTML with malicious intent... and a million other things.

Re:Quill – A cross browser rich text editor with an API by ZenoArrow on Sunday October 25, 2015 @02:35PM (#10447818)
Ah, yes that use case makes sense. Thanks.