title: Jquery: How can I create color picker for contenteditable div?
body: <p>My question is how can i do this, because i'm trying to do "simple WYSIWYG editor" and i succeed in doing changing font's size, weight etc. However I am still having problems with color picking. I have a table with cells with diffrent bgcolors. I wanted call for document.execCommand for every td inside the table. My problem is that the color of the text inside my <em>contenteditable</em> div is not changing. Even when i tried to add logging value of the colors i could read the value but still when i tried to change the color nothing happend. Am I doing something wrong? A piece of my table, and my code:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
      &lt;td style="background-color: #ffffff"&gt;&lt;/td&gt;
      &lt;td style="background-color: #ffccc9"&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  
  $("#font-menu-color td").on("click",(function(){document.execCommand('foreColor', false, $(this).css("background-color"));}));
  </code></pre>