Can i apply css to selected text in a contenteditable div instead of using execcommand. For exmaple i would like to use jquery to apply css to a selected range such as $(savedRange).css({'color':'red'});
But that does work. Can this be done.
I already have the saveselection and restoreselection functions working where i can save and restore selected text. The variable savedRange is what contains the saved text.