I apologize in advance for the stupidity of this question but I have a question that I want
to get at quickly.
I need to use a Rich Text Editor (such as the one provide by yui) to allow user editing of
documents. I need to be able to insert a span tag or some entity with meta data on it
whenever the user types in the document.
For example if I give a document to a user with the sentence:
"The dog chased the cat."
And she/he edits it to say
"The dog and moose chased the cat."
I need to be able to (as the user types) place a span tag around "moose".
A few requirements. I must do this on the client side and it must be instantaneous.
If I understand correctly the editor is injecting elements into the dom as the user clicks on
formating buttons or adds text. If this is true can I not inject a span element with a special
attribute on it whenever the user clicks and types?