tenfourfox/editor/libeditor/crashtests/759748.html
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

59 lines
1.2 KiB
HTML

<!doctype html>
<body>
<script>
var cmds = {
bold: "",
italic: "",
underline: "",
strikethrough: "",
subscript: "",
superscript: "",
cut: "",
copy: "",
paste: "",
delete: "",
forwarddelete: "",
selectall: "",
undo: "",
redo: "",
indent: "",
outdent: "",
backcolor: "#888888",
forecolor: "#888888",
hilitecolor: "#888888",
fontname: "Courier",
fontsize: "6",
increasefontsize: "",
decreasefontsize: "",
inserthorizontalrule: "",
createlink: "foo",
insertimage: "foo",
inserthtml: "foo",
inserttext: "foo",
insertparagraph: "",
gethtml: "",
justifyleft: "",
justifyright: "",
justifycenter: "",
justifyfull: "",
removeformat: "",
unlink: "",
insertorderedlist: "",
insertunorderedlist: "",
formatblock: "h1",
heading: "h1",
stylewithcss: "true",
usecss: "true",
contentreadonly: "true",
readonly: "true",
insertbronreturn: "true",
enableobjectresizing: "true",
enableinlinetableediting: "true",
};
for (var k in cmds) {
document.body.innerHTML = "<div contenteditable>abc</div>";
getSelection().removeAllRanges();
try { document.execCommand(k, false, cmds[k]) } catch(e) {}
}
</script>