title: document.execCommand not working in Firefox and IE
body: <p>I am trying to setup some bold, italic and underline buttons for my textarea, I am using this code to make the switch from normal to bold/italic/underline.</p>
  <pre><code>document.execCommand(&quot;bold&quot;, false, &quot;&quot;);
  </code></pre>
  <p>It works perfect in Chrome, but in Firefox and ie it doesn't change the text to bold or anything and I cannot work out why?</p>
  <p>Here is the full code:</p>
  <pre><code>&lt;input name=&quot;new_shout_bold&quot; type=&quot;button&quot; class=&quot;new_shout_text_option&quot; id=&quot;new_shout_bold&quot; onclick='document.execCommand(&quot;bold&quot;, false, &quot;&quot;);' value=&quot;B&quot; alt=&quot;B&quot; /&gt;
  
  &lt;input name=&quot;new_shout_italic&quot; type=&quot;button&quot; class=&quot;new_shout_text_option&quot; onclick='document.execCommand(&quot;italic&quot;, false, &quot;&quot;);' value=&quot;I&quot; alt=&quot;I&quot; style=&quot;font-style: italic;&quot;/&gt;
  
  &lt;input name=&quot;new_shout_underline&quot; type=&quot;button&quot; class=&quot;new_shout_text_option&quot; onclick='document.execCommand(&quot;underline&quot;, false, &quot;&quot;);' value=&quot;U&quot; alt=&quot;U&quot; style=&quot;text-decoration: underline;&quot; /&gt;
  </code></pre>
  <p>Here is the textarea:</p>
  <pre><code>&lt;div id=&quot;dash_new_shout_textarea&quot; name=&quot;dash_new_shout_textarea&quot; class=&quot;dash_new_shout_textarea&quot; contenteditable=&quot;true&quot;&gt;&lt;/div&gt;
  </code></pre>
  <p>Any Ideas?</p>