зеркало из https://github.com/mozilla/gecko-dev.git
14 строки
451 B
HTML
14 строки
451 B
HTML
<script>
|
|
function onLoad() {
|
|
// For emulating the traditional behavior, collapse Selection to end of the
|
|
// text node in the <dialog> which is the deepest last child of the <body>.
|
|
const dialog = document.querySelector("dialog");
|
|
getSelection().collapse(dialog.lastChild, dialog.lastChild.length);
|
|
document.execCommand("insertImage", false, "o")
|
|
}
|
|
</script>
|
|
<body onload="onLoad()">
|
|
<meter contenteditable>
|
|
<dialog>
|
|
</dialog></meter></body>
|