<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() { | |
insertParagraphCommand(); | |
typeCharacterCommand(); | |
} | |
</script> | |
<title>Editing Test</title> | |
</head> | |
<body contenteditable id="root" > | |
<div class="editing" id="test">foo</div> | |
<script> | |
runEditingTest(); | |
</script> | |
</body> | |
</html> |