зеркало из https://github.com/mozilla/gecko-dev.git
19 строки
404 B
HTML
19 строки
404 B
HTML
|
<!DOCTYPE html>
|
||
|
<html contenteditable="true">
|
||
|
<head>
|
||
|
<script>
|
||
|
|
||
|
function boom()
|
||
|
{
|
||
|
document.execCommand("inserthtml", false, "b");
|
||
|
var myrange = document.createRange();
|
||
|
myrange.selectNodeContents(document.getElementsByTagName("img")[0]);
|
||
|
window.getSelection().addRange(myrange);
|
||
|
document.execCommand("strikethrough", false, null);
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="boom();"><img></body>
|
||
|
</html>
|