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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -