38 lines
710 B
HTML
38 lines
710 B
HTML
<html>
|
|
<head>
|
|
|
|
<style>
|
|
.editing {
|
|
border: 2px solid red;
|
|
padding: 12px;
|
|
font-size: 24px;
|
|
}
|
|
</style>
|
|
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
|
|
|
|
<script>
|
|
|
|
function editingTest() {
|
|
execExtendSelectionForwardByCharacterCommand();
|
|
italicCommand();
|
|
}
|
|
|
|
</script>
|
|
|
|
<title>Editing Test</title>
|
|
</head>
|
|
<body>
|
|
<p>This tests italicizing the first character. The double quotation at the beginning must be italicized.</p>
|
|
<div contenteditable id="root" class="editing">
|
|
<span id="test">"The quick brown fox jumps over the lazy dog" uses every
|
|
letter in the english language.
|
|
</span>
|
|
</div>
|
|
|
|
<script>
|
|
runDumpAsTextEditingTest();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|