blob: 43d01e45cbbc84e93c2c8e80f845da804f4541bf [file] [log] [blame]
<html>
<head>
<style>
body {
font-size: 24px;
}
.editing {
border: 2px solid red;
padding: 12px;
}
p {
border: 2px solid blue;
padding: 12px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
for (i = 0; i < 3; i++)
moveSelectionForwardByCharacterCommand();
insertParagraphCommand();
}
</script>
<title>Editing Test</title>
</head>
<body contenteditable id="root">
Test inserting paragraphs: should see empty red box below "baz"
<div style="height: 12px"></div>
<div class="editing" id="test">baz</div>bar<div class="editing">foo</div>
<div class="editing"><br class="khtml-block-placeholder"></div>
<script>
runEditingTest();
</script>
</body>
</html>