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

Bold, italic behaviour is broken on Firefox #117

Open
cocoademon opened this issue Jul 29, 2022 · 2 comments
Open

Bold, italic behaviour is broken on Firefox #117

cocoademon opened this issue Jul 29, 2022 · 2 comments

Comments

@cocoademon
Copy link

cocoademon commented Jul 29, 2022

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

Repro:

  • Clone the typewriter repo, run npm install and npm start.
  • Open localhost:9000 in Firefox (Tested on v101.0.1 and v103.0.1)
  • Add a new line
  • Press Ctrl-B, and start typing. The first character will not be bold, but the remainder of the line is bold. This will occur again on new lines even without pressing Ctrl-B again.

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 cocoademon changed the title Ctrl-B hotkey behaviour is broken on Firefox Bold, italic behaviour is broken on Firefox Jul 29, 2022
@cocoademon
Copy link
Author

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

typewriter-bug

@cocoademon
Copy link
Author

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>

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

No branches or pull requests

1 participant