I'm using FCKEditor in a web application. I'm creating custom plugins which allow users to select from a list of drop downs and apply standard formatting to the selected text.
I can easily apply divs and such using ApplyStyle, what I haven't been able to figure out is how I surround the selected text with something like the following.
Selected Text would be here
I can do the fieldset and the div by using ApplyStyle multiple times, what I haven't figured out is how to add the Legend.