Ticket #3066: FCK Ticket.txt

File FCK Ticket.txt, 1.0 KB (added by Avi, 13 years ago)

Ticket

Line 
1on releace 2.6.4
2
3when try to find or replace text, when I press the find button to find the next occurrence of the word, there is a javascript error.
4
5The bug happens on Highlight function in fck_replace.html
6I trucked the code and the source of the error is in :
7fckdomrange.js on function _UpdateElementInfo line 47 :
8-------
9this.StartNode                  = eStart.nodeType == 3 ? eStart : eStart.childNodes[ innerRange.startOffset ] ;
10-------
11eStart.childNodes[ innerRange.startOffset ] is undefined
12
13Note - it's not happening in all sorts of texts in the editor
14
15In order to reproduce the bug, please follow the following steps
16
171. Please insert the following html code into the fck editor
18======================
19<p><font face="arial" size="2">Avi<br />
20Avi <br />
21Avi</font></p>
22<p>&nbsp;</p>
23======================
24
252. go to design mode
263. press the find (or replace) button
274. search the word 'avi'
285. press the search button 3 times
29
30You get the following error :
31Line 266
32'StartNode.nodeType' is null or not an object
33
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy