Trumbowyg: Fontsize plugin size list parameter won't work as it is supposed to

Created on 2 Oct 2019  路  2Comments  路  Source: Alex-D/Trumbowyg

Description

When following the documentation of the font size plugin, it looks like we can set custom values (in pixels). After providing an array of sizes, the drop-down list of the buttons pane display correctly. The problem is when a size in the drop-down list is selected, the style attribute change of the HTML element is not set as the size chosen. Indeed, I noticed that no matter what array of sizes is provided, the value affected by the HTML element is always going to be the same, which is one of the following: x-small, small, medium, etc. (in this order).

_v2.19.1_

How to reproduce?

You can see the bug in the documentation. Try the demo under "Custom font sizes" and inspect the modified HTML element. You'll notice that the style attribute is not the value of the drop-down list option you select.

Or, try it with this list (for example) :

    plugins: {
        fontsize: {
            sizeList: ['18px','6px','13px']
        }
    }
plugin

All 2 comments

Thank you for your issue!

I've fixed the bug and it will be ship in the next version soon :)

Mais de rien! J'attends la prochaine version avec impatience dans ce cas ;)

Merci Alex-D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mgjunk picture mgjunk  路  4Comments

neerajjoshi picture neerajjoshi  路  4Comments

akupiec picture akupiec  路  4Comments

Ydalb picture Ydalb  路  3Comments

idansh picture idansh  路  4Comments