GetmeUK / ContentTools

A JS library for building WYSIWYG editors for HTML content.
http://getcontenttools.com
MIT License
3.94k stars 393 forks source link

The part in italics is not the right one #586

Open Trylam opened 5 months ago

Trylam commented 5 months ago

Hi, I have this text: Screenshot_20240122_121602 And when I try to italicize the "tttt" text (select text + click on italic icon): Screenshot_20240122_121642 I get this: Screenshot_20240122_121655 Thank you.

anthonyjb commented 5 months ago

@Trylam any chance you can include some additional information such as browser and version as well as the HTML before and after the change?

Trylam commented 5 months ago

Of course. I use Firefox 115.6.0esr.

When I select a part of the text, this is what I get: txt01 html01

And, when when I click on italic icon : txt02 html02

I have the impression that it only does so when my first change in the text concerns the last word. It does the same thing when I try to bold.