I have added a custom button that inserts some HTML when clicked. the ExecCommand('PasteHTML'... command works fine, but it overwrites any previously selected text (or controls).
Is there a way to insert html without replacing selected text.
Thanks in advance,
James