| 1 | on releace 2.6.4 |
|---|
| 2 | |
|---|
| 3 | 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. |
|---|
| 4 | |
|---|
| 5 | The bug happens on Highlight function in fck_replace.html |
|---|
| 6 | I trucked the code and the source of the error is in : |
|---|
| 7 | fckdomrange.js on function _UpdateElementInfo line 47 : |
|---|
| 8 | ------- |
|---|
| 9 | this.StartNode = eStart.nodeType == 3 ? eStart : eStart.childNodes[ innerRange.startOffset ] ; |
|---|
| 10 | ------- |
|---|
| 11 | eStart.childNodes[ innerRange.startOffset ] is undefined |
|---|
| 12 | |
|---|
| 13 | Note - it's not happening in all sorts of texts in the editor |
|---|
| 14 | |
|---|
| 15 | In order to reproduce the bug, please follow the following steps |
|---|
| 16 | |
|---|
| 17 | 1. Please insert the following html code into the fck editor |
|---|
| 18 | ====================== |
|---|
| 19 | <p><font face="arial" size="2">Avi<br /> |
|---|
| 20 | Avi <br /> |
|---|
| 21 | Avi</font></p> |
|---|
| 22 | <p> </p> |
|---|
| 23 | ====================== |
|---|
| 24 | |
|---|
| 25 | 2. go to design mode |
|---|
| 26 | 3. press the find (or replace) button |
|---|
| 27 | 4. search the word 'avi' |
|---|
| 28 | 5. press the search button 3 times |
|---|
| 29 | |
|---|
| 30 | You get the following error : |
|---|
| 31 | Line 266 |
|---|
| 32 | 'StartNode.nodeType' is null or not an object |
|---|
| 33 | |
|---|