title: How to edit a FabricJS IText and apply new styles (e.g. highlighting, etc...)
body: <p>I want to edit the highlighted characters in a text in canvas using fabric.js, like change its color, font, style etc.</p>
  
  <p>just like this <a href="http://fabricjs.com/test/misc/itext.html" rel="noreferrer">http://fabricjs.com/test/misc/itext.html</a></p>
  
  <p>to @user43250937
  hey uhm. I tried it and it works! :D thanks.
  I tried Underline, Bold, Italic, but I have a problem changing the color of the text, I tried :</p>
  
  <pre><code>// "cinput" is the id of the color picker.
  
  
  addHandler('cinput', function(obj) {
      var color =  $("#cinput").val();
  
      var isColor = (getStyle(obj, 'fill') || '').indexOf(color) &gt; -1;
  
       setStyle(obj, 'fill', isColor ? '' : color);
  
  });
  </code></pre>