#3066: bug in find replace plugin on releace 2.6.4
-------------------------------------------+--------------------------------
 Reporter:  aviweiss                       |       Owner:                 
     Type:  Bug                            |      Status:  new            
 Priority:  High                           |   Milestone:                 
Component:  Project : MediaWiki+FCKeditor  |     Version:  FCKeditor 2.6.4
 Keywords:  find replace bug               |  
-------------------------------------------+--------------------------------
 bug in find replace plugin on releace 2.6.4
 ==============================================

 when 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.

 The bug happens on Highlight function in fck_replace.html
 I trucked the code and the source of the error is in :
 fckdomrange.js on function _UpdateElementInfo line 47 :
 -------
 this.StartNode                  = eStart.nodeType == 3 ? eStart :
 eStart.childNodes[ innerRange.startOffset ] ;
 -------
 eStart.childNodes[ innerRange.startOffset ] is undefined

 Note - it's not happening in all sorts of texts in the editor

 In order to reproduce the bug, please follow the following steps

 1. Please insert the following html code into the fck editor
 ======================
 <p><font face="arial" size="2">Avi<br />
 Avi <br />
 Avi</font></p>
 <p>&nbsp;</p>
 ======================

 2. go to design mode
 3. press the find (or replace) button
 4. search the word 'avi'
 5. press the search button 3 times

 You get the following error :
 Line 266
 'StartNode.nodeType' is null or not an object

 Please try to fix it, as soon as you can.
 I will appreciate it if you will update me in email

 [email protected]

 Thanks, Avi

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3066>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to