Opened 14 years ago

Closed 14 years ago

#4029 closed defect (fixed)

Editor isn't resized after execCommand "inserthtml"

Reported by: guest Owned by: liucougar
Priority: high Milestone: 0.9
Component: Editor Version: 0.9
Keywords: editor insert html Cc:
Blocked By: Blocking:


When using execCommand("inserthtml", someHtmlString) from a script, the editor doesn't resize until another event occurs in the editor.

The last two lines of execCommand are:

this.onDisplayChanged(); return returnValue;

onDisplayChanged is "connect"ed to _updateHeight, but this code isn't being reached because of return statements earlier in execCommand. Part of execCommand sets returnValue, and part of it uses return statements. It looks like it is all supposed to set returnValue.

Change History (1)

comment:1 Changed 14 years ago by liucougar

Resolution: fixed
Status: newclosed

(In [9993]) fixes #4029: ensure all commands triggers ondisplaychanged()

Note: See TracTickets for help on using tickets.