WYSIWYG editor
I use the execCommand function in javascript to build a WYSIWYG editor where you can write text, format it, change HTML-source behind and so on..Now I want it to work as Word, meaning: when the cursor is placed on some text, the appropriate buttons will be pushed down (this text is: Bold, Underlined, size..).
How do I get the tags that affect the text and what event can I use (should be changed everytime user clicks or moves the cursor with arrows) ??
/ Jacob