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