blob: 800d9d1969a8203443d525312ea9061fb0b67df3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
var count = 0;
document.addEventListener("DOMContentLoaded", () => {
document.onselectionchange = () => {
document.execCommand("outdent");
document.execCommand("indent");
document.execCommand("insertHorizontalRule");
if (count++ == 10) {
document.onselectionchange = null;
}
};
find("A");
});
</script>
</head>
<body><isindex contenteditable>
A
</body>
</html>
|