I am writing a plugin that uses a dialog box.
I noticed that clicking a button on the toolbar to open a dialog box triggers an event changein the editor. In any case, disable this event when opening a dialog box?
The plugin modifies the contents with setAttribute(), removeAttribute()and removeStyles(). Are there anyway calls for these methods to trigger a change event?
After further research, I discovered 2 problems (which, I think, relates to the use of the YUI App Framework), which may be the cause of unexpected behavior.
Playback: http://jsfiddle.net/c3tqk/
Task 1: 1. Select part of the first paragraph ( text) and press the button Edit Link. 2. Select part of the second paragraph ( link) and press the button Edit Link. Check the console and note the change event.
Problem 2: 1. Select exin the first paragraph and press the button Bold. 2. Deselect and select xin the first paragraph and press the button Bold. Note that the change event is fired twice.
source
share