Hi,
I made the CKEditor text box to readonly by setting the property readonly="true" and I am trying to insert content via javascript by using the following code
var cEditor = CKEDITOR.instances['<%=txtMessageBody.ClientID %>'];
var bodyelement = cEditor.document.$.body;
bodyelement.setAttribute("contenteditable", true);
cEditor.insertHtml(TemplateContent);
bodyelement.setAttribute("contenteditable", false);
The above code works in Firefox and IE but fails in Chrome with the error "Refused to set unsafe header "Connection".
Any help on this is highly appreciated.
I made the CKEditor text box to readonly by setting the property readonly="true" and I am trying to insert content via javascript by using the following code
var cEditor = CKEDITOR.instances['<%=txtMessageBody.ClientID %>'];
var bodyelement = cEditor.document.$.body;
bodyelement.setAttribute("contenteditable", true);
cEditor.insertHtml(TemplateContent);
bodyelement.setAttribute("contenteditable", false);
The above code works in Firefox and IE but fails in Chrome with the error "Refused to set unsafe header "Connection".
Any help on this is highly appreciated.