Opened 12 years ago
Last modified 12 years ago
#9501 confirmed Bug
Find selection throws error on cut in IE7/IE8 — at Initial Version
Reported by: | Jon Sykes | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: |
Description
Steps To Reproduce:
Go to the demo page in IE7 or IE8.
Clear the content in the editor.
Type:
foo bar
boo far
Click on find icon
type foo into the find field
click find (foo will become selected)
click cancel in the find dialog
click 'cut' icon in ckeditor
(accept the permissions if the browser asks)
Error Invalid Argument gets thrown.
Looks like it's some issue with getting nodeValue (for nodeValue.length) within the GetRanges function of the selection plugin.
// Start the measuring until distance overflows, meanwhile count the text nodes. var i = siblings.length; while ( distance > 0 && i > 0 ) { sibling = siblings[ --i ]; if ( sibling.nodeType == CKEDITOR.NODE_TEXT ) { container = sibling; distance -= sibling.nodeValue.length; <----- this line throws the error } }
Same error occurs if you do a find a replace for foo then close the dialog and click cut.