Opened 4 years ago

Last modified 4 years ago

#10858 confirmed Bug

Function focus() failed under IE if some of the HTML elements has style with specified width or height attributes

Reported by: Andrey Owned by:
Priority: Normal Milestone:
Component: Core : Focus Version:
Keywords: Cc:

Description (last modified by Jakub Ś)

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 4 years ago by Jakub Ś

Status: newpending
Version: 4.2.1
  1. I was able to reproduce this problem only in IE10 in Windows 7 (not in any IE version)
  2. I was only able to reproduce this problem on latest master and not in any released code
  3. The error I got was in fact
    Message: SCRIPT5022: IndexSizeError
    URI: selection.js,
    Line: 1954
  4. I could not reproduce this problem regularly. It occurred from time to time.

@apechenkin could you recheck and leave a comment?

comment:2 Changed 4 years ago by Jakub Ś

Other issues where IndexSizeError is mentioned: #10869, #10411, #10893, #10972.

Last edited 4 years ago by Jakub Ś (previous) (diff)

comment:3 Changed 4 years ago by Andrey

  1. 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.
  1. I can reproduce it in IE9 but looks like it occurred quite rare.
  1. I cannot reproduce this problem by using "http://nightly.ckeditor.com/13-09-17-13-05/full/samples/api.html"

comment:4 Changed 4 years ago by Andrey

I can regularly to reproduce this issue in IE10 and IE9 if "divarea" plugin is used

comment:5 Changed 4 years ago by Jakub Ś

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 4 years ago by Jakub Ś

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.

Last edited 4 years ago by Jakub Ś (previous) (diff)

comment:7 Changed 4 years ago by Piotrek Koszuliński

Status: pendingconfirmed

I can reproduce this issue on IE9 and I didn't need divarea to do this.

comment:8 Changed 4 years ago by Cong Lin

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 4 years ago by Jakub Ś

Description: modified (diff)

comment:10 Changed 4 years ago by Jakub Ś

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy