Well...there’s nothing stopping anyone from downloading the latest version of, say, TinyMCE and uploading it into the plugins folder whether it be an existing folder or a new one of your choosing. You can always duplicate an existing plugin and modify the plugin code as you see fit. However, the problem with editor plugins is the fact that each one has their own little quirks when it comes to it’s configuration. For instance, let’s dissect the TinyMCE plugin a little bit:
With the plugin installed, there are just two configuration settings for the editor itself. The thing about configuration settings is that it allows the user to pick and choose their own options for the most common parameters for that particular editor. Without it, we would have to hardcode static options that can’t be changed unless you edit the plugin code itself.
Now, the call to the editor itself presents some other challenges: Does the user have a CSS entered in the ’Path to CSS file’ option in Interface & Editor settings? And do we even want to allow the use of CSS selectors in the editor? What are the names of the textareas the editor is replacing? Do we need to add the use of the Resource Browser for images, links, and Flash documents? These are all questions that were addressed in the plugin itself. The main one dealt with the Resource Browser. Each of the editors needed to be edited in some way to address the integration of the Resource Browser. In the case of the TinyMCE plugin, a few lines of JavaScript were needed in the .htm files for the image, link, and Flash dialog boxes in order for the Resource Browser to work.
FCKeditor is probably the one that has been hacked the most to allow better integration with MODx as a plugin. The up-and-coming Xinha plugin required very little hacking to get it to work with everything...only thing that was needed was a few new custom MODx specific plugins for the Resource Browser.
The reason I bring this up is to let you know that there is a bit more going on in the background with each plugin that what you might think. Each plugin is crafted to address different configuration settings and compatibility issues...including which features work and don’t work with MODx. To make the editors themselves independent from MODx is simply not possible at this time. There’s a few too many things to consider for any editor to be integrated in as a plugin or otherwise.
However...all is not lost! In the case of the QuickEdit Module/Plugin, we could always make use of the OnRichTextEditorRegister system event and add a configuration option that allows the user to select which editor they wish to use with QuickEdit. This is definitely a possibility. However, the editors themselves would still only have one single set of options...it’s not as if you could use one editor theme with Content Areas and another with QuickEdit for the same editor. This would be something else to address.
Another thing I’ll mention is the whole drop-and-install option for, not just editors, but just about any plugin or module. One of the things that’s been mentioned recently is a method of installing and updating modules and plugins in a manner similar to that of Mambo or the like. It’s something that we’re definitely aware of...but will take some time to implement.
Hopefully, this essay answers most, if not all, of your questions. But if not...heck...I’ll gladly reply back.
P.S. Do we have a need for a ’textarea-only’ editor plugin?