Ticket #2470 (new Bug)

Opened 3 months ago

Last modified 3 months ago

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

Changed 3 months ago by alfonsoml

  • version changed from SVN to FCKeditor 2.6.3
  • component changed from UI : Dialogs to UI : Spell Checker
  • milestone FCKeditor 2.6.4 deleted

Changed 3 months ago by alfonsoml

  • keywords HasPatch added
Note: See TracTickets for help on using tickets.