Opened 11 years ago

Last modified 10 years ago

#11021 closed Bug

Widgets: Error thrown with elementspath #2 — at Version 4

Reported by: Marek Lewandowski Owned by:
Priority: Must have (possibly next milestone) Milestone: CKEditor 4.3.2
Component: General Version: 4.3 Beta
Keywords: Cc:

Description (last modified by Marek Lewandowski)

After talk with PK we decided to create yet separate ticket for original issue reported in #10869, since issue required more sophisticated solution.

  1. Open samples/plugins/image2/image2.html
  2. Select a widget.
  3. In elementspath, click "body"
  4. An error is thrown (Chrome, Firefox):
    Uncaught IndexSizeError: Index or size was negative, or greater than the allowed value. 
    
    IE9:
    SCRIPT5022: DOM Exception: INDEX_SIZE_ERR (1) 
    

additional info:

  1. Issue is caused because hiddenSelectionContainer is not removed in right time, and created selection has offset bigger by one.
  2. editor.getSelection().reset() call placed before range.selectNodeContents( element ) statement did the job, however it should be placed somewhere deeper to be reused. Maybe selectNodeContents itself?
  3. this issue is originated from #10869

Change History (4)

comment:1 Changed 11 years ago by Marek Lewandowski

Description: modified (diff)

comment:2 Changed 11 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.3
Status: newconfirmed
Version: 4.3 Beta

comment:3 Changed 11 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 4.3.1

comment:4 Changed 10 years ago by Marek Lewandowski

Description: modified (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy