Ticket #2470 (new Bug)
Disable content links for SpellerPages
| Reported by: | MarkWB | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | UI : Spell Checker | Version: | FCKeditor 2.6.3 |
| Keywords: | HasPatch | Cc: |
Description
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)
Change History
Note: See
TracTickets for help on using
tickets.