I have an issue that I hope you can help me with. I saw another user have posted the same issue but with no response.
I am using an Editor Widget in a form. Most of the time things are working fine but I have a few users who now and then get an Access denied error in the ext widget code for the Ext.form.HtmlEditor. The error happens in the following method:
I did notice this thread that talked about problems with domains and iframes in IE. I believe that is same problem asked about by Jramussen. http://www.sencha.com/forum/showthre...amp-HTMLEditor
I am interested because I am stuck on a similar if not the same issue. It is not hard for me to replicate in IE8 if you enforce a common document domain across all your pages.
var fHtmlEditor = new Ext.form.HtmlEditor({
id: 'idMsgText',
allowBlank: false,
value: 'blah',
width: 700
});
I've tried overloading the createIFrame method to specify a iframe.src that has a stub file with the correct domain.
And I tried overloading the getDocMarkup method to embed the correct domain. All with limited success.
If you run a secure web site that requires a specific document domain, you may run into issues with the htmleditor control. Here are some general investigation notes on the 3.1 version.
Just to add a little background. document.designMode = ‘on’ makes the whole page editable using the WSYWIG HTML editor built into every modern browser. The ExtJS HTMLEditor control normally just creates an iframe and then makes the iframe’s document editable with that flag. But any time that flag is changed, IE resets document.domain back to the hostname, and we lose the ability to communicate with the editable frame from the parent. We can’t change document.domain at all after that, so it breaks permanently.
IE has had an alternative that doesn’t mess with document.domain, available since IE6, and Firefox and other browsers added it later, which allows you to make any DOM element editable. It’s called the contentEditable flag and in theory document.body.contentEditable = true is functionally the same as document.designMode = ‘on’ We’ve changed the set/get functions ExtJS HTMLEditor uses to the latter, and so far it seems to work some what.
Some issues still arose with FireFox losing the cursor when toggling between design mode and WYSISYG. Also some weirdness with expanding the size of the window in FireFox. Since this particular use is internal with a IE user base I didn't have to solve some of those issues. Cheers.
Has anyone found a resolution to the Access Denied error when accessing an Iframe as raised by Jrasmussen? I have tried suggestions in this post as well as new versions of Ext and they all still fail on the following statement