document.execCommand("stylewithcss", false, "true");
document.execCommand("defaultParagraphSeparator", false, "div"); var test = document.getElementById("test");
test.focus();
// place caret at end of editable area var sel = getSelection();
sel.collapse(test, test.childNodes.length);
// make it a H1
document.execCommand("formatBlock", false, "H1");
// simulate a CR key
sendKey("return");
// insert some text
document.execCommand("insertText", false, "abc");
is(test.innerHTML, "
header1
abc
", "A paragraph automatically created after a CR at the end of an H1 should not be bold");
</script>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.30 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.