What should I do if I use the execCommand method to highlight selected text with a specific color and now want to undo that action?
document.execCommand("HiliteColor", false, colour);
I found this suggestion on this page, but how can I revert back to the original format before highlighting the text?