WIP: Note editing, markdown to html
[oweals/karmaworld.git] / karmaworld / apps / wysihtml5 / static / wysihtml5 / wysihtml-0.4.17 / src / commands / bold.js
1 wysihtml5.commands.bold = {
2   exec: function(composer, command) {
3     wysihtml5.commands.formatInline.execWithToggle(composer, command, "b");
4   },
5
6   state: function(composer, command) {
7     // element.ownerDocument.queryCommandState("bold") results:
8     // firefox: only <b>
9     // chrome:  <b>, <strong>, <h1>, <h2>, ...
10     // ie:      <b>, <strong>
11     // opera:   <b>, <strong>
12     return wysihtml5.commands.formatInline.state(composer, command, "b");
13   }
14 };
15