Skip to content

Line break not working in Firefox browser #2931

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

Open
izotikov opened this issue May 7, 2025 · 0 comments · May be fixed by #2679
Open

Line break not working in Firefox browser #2931

izotikov opened this issue May 7, 2025 · 0 comments · May be fixed by #2679
Labels

Comments

@izotikov
Copy link

izotikov commented May 7, 2025

I've implemented the library in my project. Faced with the problem that at Firefox browser line not breaking at very long words, only at sentences. Chrome, Opera and Safari doing just fine.

Steps to reproduce:

  1. Go to Firefox browser.
  2. Click on EditorJs text field.
  3. try to write very long word.

Expected behavior: Word breaking at the end of text field

Actual behavior: Text not breaking, check screenshots for more info. First screenshot - bug in Firefox. Second screenshot - how it should work (and working in Chrome, Safari, Opera)

Screenshots:

Image

Image

Device, Browser, OS: PC, Firefox, 138.0.1, Windows 11.

Editor.js version: 2.30.8

Plugins you use with their versions:
Editorjs/paragraph version: 2.11.7

I fixed it in my project by adding this in my CSS file

.cdx-block {
  overflow-wrap: break-word;
}

So maybe it will be useful for you.

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

Successfully merging a pull request may close this issue.

1 participant