How to create own format buttons in Quill.js?
<p>I just started playing with Quill.js rich text editor and ran into a challenge while trying to create my own text formatting buttons.</p>

<p>In HTML I added the following radio buttons inside .​</p>

<pre><code>&lt;form name="temp-form"&gt;
&lt;input type="radio" name="font-size-radio" value="10px"&gt;10px
&lt;input type="radio" name="font-size-radio" value="13px"&gt;13px
&lt;/form&gt;
</code></pre>

<p>In JavaScript I try to change font size settings using prepareFormat:</p>

<pre><code>var radios = document.forms["temp-form"].elements["font-size-radio"];
for (radioValue in radios) {
  radios[radioValue].onclick = function() {
    editor.prepareFormat('size', this.value);​​
  }
}
</code></pre>

<p>After I click on radio buttons JavaScript gets to prepareFormat line, but when I continue typing in text editor text format stays the same.</p>

<p>For debugging I tried using ​prepareFormat('​bold', ​true) from Quill JS documentation example ​instead of ​prepareFormat('size', this.value), but that seems to be ignored too.</p>

<p>What would you recommend here?</p>