My goal is to call the Find logic on the find and replace dialog and passing the parameters normally provided in the input fields on the find and replace dialog. I tried to pull the logic from the javascript in the find dialog but it started to get very complicated and I was unable to get it too work. The ideal pseudo code would look something like:
var fckEditor = FCKeditorAPI.GetInstance('htmlEntryField') ;
//call the find logic passing in the text you want the editor to find
fckEditor.find('Brian');
//editor highlights the first occurrence of the text 'Brian' in the editor - same behavior as the find dialog.
Any suggestions or direction would be greatly appreciated.
Thanks,
Brian
var fckEditor = FCKeditorAPI.GetInstance('htmlEntryField') ;
//call the find logic passing in the text you want the editor to find
fckEditor.find('Brian');
//editor highlights the first occurrence of the text 'Brian' in the editor - same behavior as the find dialog.
Any suggestions or direction would be greatly appreciated.
Thanks,
Brian
