blob: 3aa91cceca74ba55981f92c800f560705177ee4d [file] [log] [blame]
<html>
<head>
<style>
body {
font-size: 24px;
}
.editing {
border: 2px solid red;
padding: 12px;
}
div {
border: 2px solid blue;
padding: 12px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
for (i = 0; i < 4; i++)
moveSelectionForwardByCharacterCommand();
insertParagraphCommand();
}
</script>
<title>Editing Test</title>
</head>
<body contenteditable id="root">
Test inserting paragraphs: should see empty blue box above "bar"
<div style="border: none; 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>