blob: 66a8d84828fa6f4be1b88057ff5fbab4f837bc7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<script type="text/javascript">
function init() {
var editor = document.querySelector("div[contenteditable]");
editor.addEventListener("focus", function() {
setTimeout(function() {
document.documentElement.className = "";
}, 0);
}, false);
editor.focus();
}
</script>
<style type="text/css">
html, body, div {
margin: 0;
padding: 0;
}
div {
border: 1px solid black;
margin: 50px;
height: 200px;
width: 200px;
}
</style>
</head>
<body onload="init()">
<div contenteditable style="position: absolute">
this editable container should be neither draggable nor resizable.
</div>
</body>
</html>
|