typewriter-editor / typewriter

A rich text editor based off of Quill.js and Ultradom, and using Svelte for UI.
MIT License
382 stars 32 forks source link

Bold, italic behaviour is broken on Firefox #117

Open cocoademon opened 1 year ago

cocoademon commented 1 year ago

When in "bold" mode, Firefox leaves the first character of each line non-bolded.

Repro:

This also happens when enabling Bold using the toolbar (on http://localhost:9000/toolbar)

Also affects Italics

It appears to work correctly in Chrome.

I'm not sure where to start debugging this behaviour, but if I had to guess I'd suggest that one avenue for investigation is the order of inputs in FF to Chrome.

cocoademon commented 1 year ago

In action - I pressed Ctrl-B before typing, and only pressed it once in total.

typewriter-bug

cocoademon commented 1 year ago

Just to clarify, there's no stylesheet affecting the first letter, the HTML for the first bold paragraph above is:

<p>H<strong>ello, this is bold</strong></p>