Alex-D / Trumbowyg

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

Font-size is only updated once, then is no more updated #1252

Closed BenMonteiro closed 2 years ago

BenMonteiro commented 2 years ago

It seemed that the span tag is not removed when the font size of an element is updated more than one time

font-size issue

Alex-D commented 2 years ago

Hey!

As you did not follow the issue template, please, can you give me more details? I can't reproduce here: https://alex-d.github.io/Trumbowyg/demos/#plugins-fontsize

Issue template: https://github.com/Alex-D/Trumbowyg/blob/develop/.github/ISSUE_TEMPLATE.md?plain=1

kevinlem14 commented 2 years ago

Hi,

I can reproduce this problem too here : https://alex-d.github.io/Trumbowyg/demos/#plugins-fontsize Browser : Firefox 92 OS : Ubuntu

Just select all the line (with triple clicks for example) and change the size.

aeyoll commented 2 years ago

Hello @Alex-D, ~Did you had the chance to take a look at this issue please? Thanks a lot!~

Edit: I made a PR fixing this issue

Alex-D commented 2 years ago

Will be deployed in the next release