Opened 9 years ago
#14812 new Bug
Editor calls setData twice at load
Reported by: | Alex-Dev | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.11 |
Keywords: | setData called twice per load | Cc: |
Description
Steps to reproduce
- In file "core/dom/domobject.js", at around line 45, modify function "getNativeListener()" by modifying the if statement that conditions the "domObject.fire()" call, such that it is preceded by a statement like console.log("Handling event:"+event).
- In "plugins/wysiwygarea/plugin.js", at around line 321, at the beginning of definition of function "setData", put in a statement like console.log("In 'setData' at top");
- Run any program that uses CKEditor. I am using the textarea/iframe type set-up, with five editors opening one right after the other.
Expected result
When the "load" event occurs, "setData" should get called once.
Actual result
After "load" finished, "setData" gets called a second time.
Other details (browser, OS, CKEditor version, installed plugins)
For my five text areas, all five sequences of "load" then "setData" are finished before the next set of five "setData" calls begins.