Does anyone know of a way to wrap custom tags around selected text
using execCommand or otherwise?
I am developing a rich text editor for use in a web site and while
there are a few decent ones already floating around I need to
implement a few extra bits of functionality. Specifically tool tips.
Idealy I'd like to wrap custom tags around selected text using
execCommand.
Ie "Selected Text"
becomes:
"<a title='User inputed tooltip'>Select ed Text</a>".
Any ideas?
------------------------------------------------------------
Programming is like sex, one mistake and you have to support it for
the rest of your life. (Michael Sinz)
using execCommand or otherwise?
I am developing a rich text editor for use in a web site and while
there are a few decent ones already floating around I need to
implement a few extra bits of functionality. Specifically tool tips.
Idealy I'd like to wrap custom tags around selected text using
execCommand.
Ie "Selected Text"
becomes:
"<a title='User inputed tooltip'>Select ed Text</a>".
Any ideas?
------------------------------------------------------------
Programming is like sex, one mistake and you have to support it for
the rest of your life. (Michael Sinz)
Comment