Quill JS - unsure how to properly set initial toolbar options -
my understanding of quill js pretty limited @ moment, , can't find documentation on over quill site/github page, hope may able set me straight.
when creating quill toolbar, it's possible set 'selected' attribute of toolbar's select elements, , setting used default value when entering new line.
<select title="size" class="ql-size"> <option value="10px">small</option> <option value="13px">normal</option> <option value="18px">large</option> <option value="32px" selected>huge</option> </select>
while default value displayed in toolbar, corresponding value not applied line.
please see following js fiddle
the 'default' font monospace , size 'huge'. however, if type editor, not applied, unless re-select these values toolbar dropdowns.
is expected should apply css rules editor match 'default' values set in toolbar? (this seems unnecessary duplication) or looking @ wrong direction?
it expected apply css rules editor match 'default'. when tell toolbar '32px' default, you're not saying set text 32px, you're saying set nothing / unset it. otherwise every single unformatted character formatted huge list of default formats.
Comments
Post a Comment