The dynamically set EditorBodyStyle is also being erased by the Create Image Map dialog.
Reproduction steps:
- Open second example page provided by Kenneth.
- Click button to turn background red.
- Insert an image.
- Open the Create Image Map dialog.
- Oddly, the editor's page title is changed to NaN,NaN.
- Click the dialog's Cancel button to exit the dialog.
- The editor background turns white.
I added some code to log to the console.
RichTextEditor_OnExecCommand = function (rteEditor, info) {
var cmd = info.Arguments[0];
console.log("OnExecCommand, cmd = " + cmd);
};
RichTextEditor_OnExecUICommand = function (rteEditor, info) {
var cmd = info.Arguments[1],
thing = info.Arguments[0];
console.log("OnExecUICommand, cmd = " + cmd + ", thing = " + thing);
};
When I ran the repro steps in Chrome, I saw the following log messages:
OnExecUICommand, cmd = tabedit, thing = null
OnExecCommand, cmd = tabedit
OnExecUICommand, cmd = InsertGallery, thing = [object HTMLDivElement]
OnExecUICommand, cmd = InsertImageMap, thing = [object HTMLDivElement]