FCKEditor – Permission denied in IE 7

I am getting a permission denied error during calls to SetHTML. Debugging says that the error occurs on the line

FCK.EditorDocument.detachEvent(“onselectionchange”, Doc_OnSelectionChange).

Answer:

It seems i are calling the SetHTML too early. Must wait for the FCKeditor_OnComplete event, so the editor will be ready to do that.

Some solutions:

1. From James in FckEditor forum:

set_value: function(fck, value)
{
if(fck._settingTo != null)
return;
fck._settingTo = 1;

window.setTimeout(function()
{
fck._settingTo = null;
fck.SetHTML(value);
},
250
);
}

Respond to this post