Hello,
I am attempting to write a plugin to be used with FCKEditor 2.? in the MindTouch Deki.
Specifically, what I need the plugin to do is to capture the text that is selected, then pop up a window that allows the user to set some radio buttons or set some check boxes.
Once these options have been set, the script will wrap certain html tags around the selected text based on those options, and then put this text back into the editor window.
I have been able to get a button on the tool bar, and pop up my window with the needed buttons and checkboxes.
However, I am unable to capture the selected text or put text back in to the editor.
Do you have any code samples that would provide examples of capturing selected text, and samples of inserting text back in to the editor?
Thanks for your help.
I am attempting to write a plugin to be used with FCKEditor 2.? in the MindTouch Deki.
Specifically, what I need the plugin to do is to capture the text that is selected, then pop up a window that allows the user to set some radio buttons or set some check boxes.
Once these options have been set, the script will wrap certain html tags around the selected text based on those options, and then put this text back into the editor window.
I have been able to get a button on the tool bar, and pop up my window with the needed buttons and checkboxes.
However, I am unable to capture the selected text or put text back in to the editor.
Do you have any code samples that would provide examples of capturing selected text, and samples of inserting text back in to the editor?
Thanks for your help.