When running Find & Replace against text that is longer than a few paragraphs, the editor will run very slowly and often trigger an alert in FF, informing the user that the script is misbehaving and asking whether it should be stopped or not. This usually happens if are trying to find and replace in one go. A better way to handle this functionality is to process smaller chunks of text, say 100 lines or one paragraph at a time, and use JS timer (i.e. setTimer) to process every chunk leaving a few milliseconds between iterations.
Andre
Andre
Re: Find & Replace is not JavaScript-friendly
Martin have recently done a full review of the Find/Replace code and optimized it a lot:
http://dev.fckeditor.net/ticket/2150
In any case, your idea is not bad Andre, and can be considered on future enhancements to it. Can you open a ticket for it at our dev site?
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn