I added my own event listener (a dblclick in jquery) to the grippie that appears on the body textarea when there's no editor showing. I noticed that when any rich text editor was toggled OFF in the body of a node edit form, the event listener that I added is wiped from the grippie.

It can easily be reproduced:
1. Make a small module that implements hook_form_alter(). Add a javascript file that attaches an event listener to "div.grippie" and pops up an alert() box. Enable the small module.
2. Attempt to add a new node, toggle the editor off by selecting an input format that doesn't have an editor bound to it, then perform the action on the grippie that triggers the event (a double click in my case) and the event should not fire.

I tried this in Firefox 3.5.1.

Comments

sun’s picture

Issue tags: -event, -triggers, -events, -triggering, -editor

We need to invoke Drupal.attachBehaviors() after attaching an editor, or, perhaps only the default resizable textarea.