Q:

Make mouse clicks unresponsive when text are selected

I am currently working on a WYSIWYG web editor.
The problem i ran into is a little complicated.
When I select a section of text and click on something on my tools, the command works but immediately the text becomes unselected.
Just like when we select text in any webpage, when we click on something else, the text becomes unselected and everything returns to normal.
Is there a way to suppress the mouse clicks when a text is already selected so that the text will remain selected?
Thanks in advance.

A:

You need to add an attribute to all html elements in the toolbar:
unselectable = "on"

This works for IE, don't know for other browsres.
I remember this from when i was playing with attempting to the reinvent teh wheel by doing the nth WYSIWYG HTML editor.
After I decied to use TinyMCE, even if sometimes I still regret not to have fun in developing it from scratch

