зеркало из https://github.com/mozilla/pjs.git
23 строки
542 B
HTML
23 строки
542 B
HTML
<html>
|
|
<head>
|
|
<script>
|
|
|
|
function boom()
|
|
{
|
|
var br = document.getElementById("br");
|
|
br.contentEditable = "true";
|
|
br.focus();
|
|
|
|
try { document.execCommand("justifyfull", false, null); } catch(e) { }
|
|
try { document.execCommand("justifyfull", false, null); } catch(e) { }
|
|
document.execCommand("underline", false, null);
|
|
document.execCommand("insertimage", false, "foo");
|
|
try { document.execCommand("outdent", false, null); } catch(e) { }
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="boom();"><br id="br"></body>
|
|
</html>
|