-
-
25 Like
ContentTools
A small & beautiful WYSIWYG editor for HTML content. ContentTools is a collection of small, flexible, extensible and framework agnostic JavaScript libraries for creating beautiful WYSIWYG editors for HTML content.
-
Compose beautifully formatted text in your web application. Trix is a WYSIWYG editor for writing messages, comments, articles, and lists—the simple documents most web...
compose beautifully formatted text in your web application. trix is a wysiwyg editor for writing messages, comments, articles, and lists—the simple documents most web apps are made of. it features a sophisticated document model, support for embedded attachments, and outputs terse and consistent html.
most wysiwyg editors are wrappers around html’s contenteditable and execcommand apis, designed by microsoft to support live editing of web pages in internet explorer 5.5, and eventually reverseengineered and copied by other browsers.
because these apis were never fully specified or documented, and because wysiwyg html editors are enormous in scope, each browser’s implementation has its own set of bugs and quirks, and javascript developers are left to resolve the inconsistencies.
trix sidesteps these inconsistencies by treating contenteditable as an i/o device: when input makes its way to the editor, trix converts that input into an editing operation on its internal document model, then rerenders that document back into the editor. this gives trix complete control over what happens after every keystroke, and avoids the need to use execcommand at all.
web-based rich-text-editor javascript-library