Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.96k stars 606 forks source link

Line height plugin displaying custom size 1.5 as large #1458

Closed amy-simmons-cloudm closed 1 month ago

amy-simmons-cloudm commented 1 month ago

I am using the line height plugin and specifying a list of sizes as below

lineheight: { sizeList: [ '1', '1.1', '1.2', '1.3', '1.4', '1.5', '2' ] },

However the size 1.5 is being displayed as 'large' in the dropdown. The other sizes display as expected.

I am using https://alex-d.github.io/Trumbowyg/documentation/plugins/#plugin-lineheight as reference but the custom size list section here seems to be referencing fontsize and not lineheight.

Can you clarify how to resolve this?

Alex-D commented 1 month ago

Hey, its due to translations: https://github.com/Alex-D/Trumbowyg/blob/develop/plugins/lineheight/trumbowyg.lineheight.js#L9-L13

You can override them if you want to remove them

amy-simmons-cloudm commented 1 month ago

Hi, thanks for getting back to me. I have been able to resolve this based on your information