Skip to content

Commit

Permalink
Added more header support
Browse files Browse the repository at this point in the history
  • Loading branch information
swilliams committed Oct 20, 2011
1 parent c015ded commit 56c5100
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions examples/dropdown.html
Expand Up @@ -23,14 +23,23 @@
label: 'Headers',
options: [
{ label: "Headers", val: '' },
{ label: "H1", val: 'h1' },
{ label: 'H2', val: 'h2' },
{ label: 'H3', val: 'h3' }
{ label: "H1", val: 'H1' },
{ label: 'H2', val: 'H2' },
{ label: 'H3', val: 'H3' }
],
handler: function(editor, val) {
alert('foo: ' + val);
editor.headerSelection(val);
},
query: function(editor) {
return editor.headerSelected();
}
});
toolbar.addButton({
name: 'em',
label: "Emphasis",
handler: function(editor) { editor.italicSelection(); },
query: function(editor) { return editor.italicSelected(); }
});

// Hide our error message if the editor loads fine
$('#error').hide();
Expand Down

0 comments on commit 56c5100

Please sign in to comment.