var test = document.getElementById('test');
test.focus();
-window.getSelection().setPosition(test, 1);
+window.getSelection().collapse(test, test.childNodes.length);
document.execCommand('backColor', false, '#ff0000');
document.execCommand('fontSize', false, 5);
var backColor = document.queryCommandValue('backColor');