Here is a partial answer, but I'm still looking for a solution for Chrome:
In IE9, you can use the following:
document.execCommand("foreColor",false,"")
In Firefox, you can use this:
document.execCommand("foreColor",false,"inherit")
But in Chrome, passing an empty / empty string does nothing, and passing "inherit" causes the text color to match "rgba (0, 0, 0, 0)" - transparent black. Clearly, this is a mistake. I would like to see a more reliable way to cross-browser.
undefined
source share