Opened 11 years ago
Last modified 11 years ago
#10858 confirmed Bug
Function focus() failed under IE if some of the HTML elements has style with specified width or height attributes — at Version 10
Reported by: | Andrey | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Focus | Version: | |
Keywords: | Cc: |
Description (last modified by )
Steps to reproduce:
This issue is easy to reproduce by using api.html CKEditor sample:
- run api.html sample on IE (any version)
- Start debugging
- Set editor content to:
<div style="width: 300px; height: 300px;">
<span class="text" style="font-family: Arial; font-size: 10pt;">CKEditor</span>
</div>
- select text
- right click and select "Copy" Now you will get error: ckeditor.js, line 265 character 107; SCRIPT16389: Incorrect function.
Without debugging you will just fail to do any actions that can change focus: like copy/paste using popup menu, change font name or font size by using font list boxes from toolbar.
Browser and OS: Internet Explorer 10, Windows 7
Error SCRIPT16389 is also mentioned in #10857, #10796, #10894, #10970.
Change History (10)
comment:1 Changed 11 years ago by
Status: | new → pending |
---|---|
Version: | 4.2.1 |
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
- I can reproduce this issue regularly in IE10 if I use downloaded "CKEditor Version 4.2.1 • 10 Sep 2013" ... and in this case I am getting "Incorrect function" error.
- I can reproduce it in IE9 but looks like it occurred quite rare.
- I cannot reproduce this problem by using "http://nightly.ckeditor.com/13-09-17-13-05/full/samples/api.html"
comment:4 Changed 11 years ago by
I can regularly to reproduce this issue in IE10 and IE9 if "divarea" plugin is used
comment:5 Changed 11 years ago by
Could you perhaps provide screen cast or sample page (it can be remote sample page) where this issue can be reproduced? I'm unable to do it.
Perhaps there is something missing in your TC steps.
comment:6 Changed 11 years ago by
NOTE: if this issue requires divarea (and error is indexSizeError and not Incorrect function) then this is most likely a duplicate of #10411.
If possible please provide what I have asked for in last comment and I will verify it.
comment:7 Changed 11 years ago by
Status: | pending → confirmed |
---|
I can reproduce this issue on IE9 and I didn't need divarea to do this.
comment:8 Changed 11 years ago by
I also see this issue for my site. It happens when I call editor.focus() after instanceReady event. BTW is there a workaround for this issue now? Thanks very much :)
editor.on("instanceReady", function () {
editor.focus();
});
comment:9 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:10 Changed 11 years ago by
Description: | modified (diff) |
---|
Message: SCRIPT5022: IndexSizeError
URI: selection.js,
Line: 1954
@apechenkin could you recheck and leave a comment?