We need to create the specs for a "plug-in layer" that will sit between Moodle and the code of each editor. The files for this should be separated from the files received in orignal editor distribution (in tinymce case, that means out of the jscripts folder).
Janne Mikkonen starter such a layer two years ago, in the form of the files editorname.class.php. As TinyMCE has changed quite a lot since then, the file needs to be reworked: the configuration variables have changed, the __is_valid_key() function could possibly be removed, etc.
The starting code (as sent in by Mauno K.) and the older code from Janne need to be merged.