How can i design special button so the selected text (into the edit box) will wrap with my own tags, and if there is not selection, just insert the open tag?
The solution should be compatible with IE and FireFox.
I guess there is internal function for this task, because many standrad buttons doing that (Bold, Italic and etc.), But I can't find any documentation.