I am working in an application where it is necessary to set document.domain. This is non-negotiable. When document.domain is set and I am using localhost or a FQDM then I get an "Access Denied" error from Kendo. It has something to do with creating or accessing the iframe for the editor. The error occurs on line 301 of kendo.editor.js:
You can reproduce this issue by taking the editor demo (found here: examples\web\editor\index.html) and adding the following script tag at the end of the head:
Setting the document.domain after the editor is initialized obviously works but probably wont always be an option. How can I get the editor to work after document.domain is set?
This occurs in IE 8 & 9. The version of Kendo I am using is 2013.2.716.
295 iframe = $("<iframe />", { src: 'javascript:""', frameBorder: "0" })296 .css("display", "")297 .addClass("k-content")298 .insertBefore(textarea)[0];299 300 wnd = iframe.contentWindow || iframe;301 doc = wnd.document || iframe.contentDocument;You can reproduce this issue by taking the editor demo (found here: examples\web\editor\index.html) and adding the following script tag at the end of the head:
<script>document.domain=document.domain;</script>This occurs in IE 8 & 9. The version of Kendo I am using is 2013.2.716.