I’m just messing around with contenteditable property and while using queryCommandValue on backColor command, Internet Explorer 9 returns a number instead of rgb or hex color like in Chrome or Firefox.
For example using queryCommandValue on random text with background-color: rgb(255, 204, 0); returns 52479.
What could I do to force IE to return rgb color?
Try converting it with this function:
demo http://jsfiddle.net/Vu7Dk/16/