viernes, 27 de enero de 2012

What is DOM Rich Text?

DOM Rich Text is an alternative to the classical solution of an IFRAME with designMode activated or an element with ContentEditable activated. It relies in an object that allows the developer to work with multiple div tags in a document that can be edited through keyboard, mouse and several methods of the drt object, a javascript Object that controls the DOM structure of the area to edit.
DOM Rich Text is not a WYSIWYG Editor, but it is the canvas to construct it. Any javascript developer that entered to the world of rich text edition knows that there are a lot of limitations, obfuscations and browser incompatibilities with the classical approach, the solution always falls on the different already-made editors which deal with execCommand method problems. But, despite the beauty and completeness of those editors, many developers like me find themselves limited to what "designMode=true" can do.
Obviously, DOM Rich Text is not aimed to a simple-to-put interface, but it has a lot of methods (and will have more), that allow the developer to control the canvas that have the rich text. The current version of the code is distributed under the MIT licence.
DOM Rich Text uses extensively comunes0_6.js, a javascript framework developed and maintained by myself, it has a lot of functions and prototyped methods that are very common in the javascript development. Perhaps in the future, mostly if I have collaborators, I will turn the basement to jQuery, Prototype or other popular framework.
Properties, Methods and particular Events are named by Spanish complete or truncated words, it is because it allows me to avoid reserved words maintaining the meaning. This document contains a table of equivalences to allow a better comprehension.

No hay comentarios:

Publicar un comentario