Ticket #2158: spellerpages-patch.patch
File spellerpages-patch.patch, 1.0 KB (added by , 16 years ago) |
---|
-
editor/dialog/fck_spellerpages/spellerpages/wordWindow.js
167 167 // the word. If they are word characters we'll keep looking. 168 168 var before_char = wordtxt.charAt( begin_idx - 1 ); 169 169 var after_char = wordtxt.charAt( end_idx ); 170 // handle the case where the misspelled word shows up within a tag attribute 171 // before it shows up in the text. 172 // (i.e. pasted text from MSWord and x:str="..." attribute, such as in table cells) 173 var tag_open = wordtxt.lastIndexOf( "<", begin_idx ); 174 var tag_close = wordtxt.lastIndexOf( ">", begin_idx ); 170 175 } while ( 171 176 this._isWordChar( before_char ) 172 177 || this._isWordChar( after_char ) 178 || tag_open > tag_close 173 179 ); 174 180 175 181 // keep track of its position in the original text.