Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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>