Tue 8 Aug 2006
The patch for enhanced editor2 for dojo with all the infrastructures finished is just merged to the online demo (The patch does not contain all the files to run the online demo, as it only contains text modifications). By infrastructural, it is meant that all the basic frameworks to make an extensible/flexible Editor2 (along with Editor2Toolbar) are in place, but not all the features are implemented, although the current feature set is already a super-set of the original Editor2.
The infrastructures include:
- Extensible command
- Flexible/Extensible toolbar item
- Plugins support for Editors, in which Command/Toolbar Item can be defined
- Browser built-in commands are almost covered
- Complex toolbar items, such as dropdown menu (like the one in FCKeditor) are realized. In addition, popup windows (dialogs, in fact, they are FloatingPanes) are introduced as well: the createlink button is an instance of this. (yes, insert/edit link should work ok now)
- Three plugins are written to demonstrate how to hook additional commands/toolbar items to the editor, which include:
- AlwaysShowToolbar: fully implemented, replace the original built-in feature of Editor2
- ToolbarDndSupport: demonstrating plugin, lack some features, but DnD is working as expected (in the online demo, this plugin is disabled)
- FindReplace: this plugin implements the Find and Replace commands and toolbar items. Find has a primitive implemented FF, while IE Find support and Replace haven’t been achieved yet. This plugin also demonstrate how to popup a none-modal dialog to ask users for more information.
The only missing feature planned for this enhanced editor2 is context menu support. I’d like to have this patch reviewed and committed into svn before trying to implement that.
Other changes include migrating selection manipulation in RichText to dojo.html.selection and improved the latter one. These code has already been committed into svn.
Currently, the plugins are located at src/widget/Editor2Plugin dir and template files for Editor2 are placed in src/widget/template/Editor2.
As the theme shown in the demo was ported from FCKeditor, which has no chance to be merged in to dojo svn due to license incompatibility, I will have to write a new one instead, or rather porting the original template file/css file. (This is only meant for review purpose, and the theme I will commit would be our own.)
Feedback and suggestions are welcome.
RSS feed for comments on this post. TrackBack this post
August 9th, 2006 at 11:11 pm
It looks like you just posted this - when will it become available/stable?
August 10th, 2006 at 11:01 am
Looks great! I’ve been looking for an alternative to FCK. My main problem with the dojo editor is that it lacks a “paste from Word” feature. Have you thought about porting that feature from FCK?
August 10th, 2006 at 2:02 pm
@Brian:
This work will be included in dojo next release 0.4
@Per-Arne:
Actually, I wrote my own “Paste from Word” plugin for FCKeditor (see SJSD), so I think I will have that covered in dojo editor.
August 16th, 2006 at 10:53 am
Hi that looks great!
Can you tell me when dojo 0.4 will be released and maybe the link to download and test the current version of your Editor2 extension? That would be great!
Another question: Is it possible to deactivate pasting of HTML code (or pasting in general) into the Editor?
Thanks a lot!
Ralf