Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 <!doctype html>
2 <body>
3 <script>
4 var cmds = {
5 bold: "",
6 italic: "",
7 underline: "",
8 strikethrough: "",
9 subscript: "",
10 superscript: "",
11 cut: "",
12 copy: "",
13 paste: "",
14 delete: "",
15 forwarddelete: "",
16 selectall: "",
17 undo: "",
18 redo: "",
19 indent: "",
20 outdent: "",
21 backcolor: "#888888",
22 forecolor: "#888888",
23 hilitecolor: "#888888",
24 fontname: "Courier",
25 fontsize: "6",
26 increasefontsize: "",
27 decreasefontsize: "",
28 inserthorizontalrule: "",
29 createlink: "foo",
30 insertimage: "foo",
31 inserthtml: "foo",
32 inserttext: "foo",
33 insertparagraph: "",
34 gethtml: "",
35 justifyleft: "",
36 justifyright: "",
37 justifycenter: "",
38 justifyfull: "",
39 removeformat: "",
40 unlink: "",
41 insertorderedlist: "",
42 insertunorderedlist: "",
43 formatblock: "h1",
44 heading: "h1",
45 stylewithcss: "true",
46 usecss: "true",
47 contentreadonly: "true",
48 readonly: "true",
49 insertbronreturn: "true",
50 enableobjectresizing: "true",
51 enableinlinetableediting: "true",
52 };
53 for (var k in cmds) {
54 document.body.innerHTML = "<div contenteditable>abc</div>";
55 getSelection().removeAllRanges();
56 try { document.execCommand(k, false, cmds[k]) } catch(e) {}
57 }
58 </script>