#2470: Disable content links for SpellerPages
--------------------------+-------------------------------------------------
 Reporter:  MarkWB        |       Owner:                 
     Type:  Bug           |      Status:  new            
 Priority:  Normal        |   Milestone:  FCKeditor 2.6.4
Component:  UI : Dialogs  |     Version:  SVN            
 Keywords:                |  
--------------------------+-------------------------------------------------
 The user can break SpellerPages by navigating the wordWindow with links.
 Appending the following lines of code to the end of the writeBody()
 function of 'wordWindow.js' effectively disables these links:
 {{{
         var find = /<a(\s[^\>]*)href=\"[^\"]*\"(.*?)\<\/a\>/gi;
         var repl = '<span style="color:blue;text-
 decoration:underline"$1$2</span>';
         //d.body.innerHTML = d.body.innerHTML.replace(find,repl); //memory
 leak for IE?
         var doc = d.body.innerHTML.replace(find,repl);
         d.body.innerHTML = doc;
 }}}
 (Note this suggestion is also included in the solutions I've attached to
 ticket #2326)

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2470>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to