Questions on the [editorname].js file and Drupal.wysiwyg.editor.instance.[editorname]

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
mfromin's picture

I am trying to get a different rich text editor (RTE) working with the wysiwyg module. I have created the [editorname].js and [editorname].inc files and have been successful in getting the RTE to load - I can successfully create / edit content with the RTE. So far so good...

From my initial experimentation I can see that Drupal.wysiwyg.editor.attach.[editorname] gets called when the page loads the RTE. I can also see that Drupal.wysiwyg.editor.detach.[editorname] gets called when the editor is going to get unloaded.

What I can't figure out is when (if?) the methods in Drupal.wysiwyg.editor.instance.[editorname] ever get called. I have not seen one of those methods get called ever in my testing to date.

I am using D7 (7.23) if that would help identify the issue.

I appreciate anyones time/assistance with this - I am fairly new to Drupal and PHP. I feel like I have this mostly figured out but am curious why the js file has code in it that never appears to be needed.

Wysiwyg

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week