Hi,
I want to create a function where a user selects some text and then clicks a custom button to open a dialog box, makes some selection from the dialog box which subsequently pastes some HTML code to the editor. I'm fine with creating the button, opening a dialog box and then pasting the HTML. The only thing I can't figure out is how to pass a value (in this case the selected text) to the dialog box.
Is there a simple way to do this?
Nick