4 ['bold', 'Toggles the bold font.', function() {
5 document.execCommand('bold', undefined, undefined);
7 ['italic', 'Toggles the italic font.', function() {
8 document.execCommand('italic', undefined, undefined);
10 ['unordered list', '', function() {
11 document.execCommand('insertUnorderedList', undefined, undefined);
13 ['ordered list', '', function() {
14 document.execCommand('insertOrderedList', undefined, undefined);
16 ['paragraph', '', function() {
17 document.execCommand('insertParagraph', undefined, undefined);
19 ['heading', '', function() {
20 document.execCommand('formatBlock', undefined, 'h1');
25 cmd = new Atlantis.Command();
26 cmd.name = cmds[i][0];
29 cmd.data = cmds[i][3];
30 Atlantis.addCommand(cmd);