Draft-js: An error in webpage about wrap text in editor

Created on 10 Mar 2016  路  8Comments  路  Source: facebook/draft-js

have a look
drafterrorwrap

bug

Most helpful comment

As a note to anyone who lands here debugging this problem, make sure that your Editor component is not inside a flexbox because that can cause this issue to occur even with the fix in 7d57590

All 8 comments

What browser are you using? This doesn't repro for me in Chrome 49 on Mac.

Firefox 45.0

Confirmed this repros on Firefox 45.0 (OSX).

word-break: break-all on public-DraftEditor-content seems to fix it

Adding word-wrap/word-break to the DraftEditor-content fixes this.

Wanna send in a PR?

(oops, @zachberry beat me to it)

As a note to anyone who lands here debugging this problem, make sure that your Editor component is not inside a flexbox because that can cause this issue to occur even with the fix in 7d57590

I am experiencing this same issue but only when using codeblocks
https://codesandbox.io/s/1oqr4xyy6j

Was this page helpful?
0 / 5 - 0 ratings

Related issues

darklightblue picture darklightblue  路  3Comments

jackmatrix picture jackmatrix  路  3Comments

ufo22940268 picture ufo22940268  路  3Comments

abeq picture abeq  路  3Comments

snaerth picture snaerth  路  3Comments