Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line height plugin displaying custom size 1.5 as large #1458

Closed
amy-simmons-cloudm opened this issue May 13, 2024 · 2 comments
Closed

Line height plugin displaying custom size 1.5 as large #1458

amy-simmons-cloudm opened this issue May 13, 2024 · 2 comments
Labels

Comments

@amy-simmons-cloudm
Copy link

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
Copy link
Owner

Alex-D commented May 21, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants