blob: a8f0c8691fea2213b8bce1fee40fb718c63e56d9 (
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
34
|
<!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);
});
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>
this editable container should be neither draggable nor resizable.
</div>
</body>
</html>
|