-
Currently, the lexical/packages/lexical/src/LexicalEditor.ts Line 973 in e3615cd I would like to try be able to set it to There was a discussion at #3640 but the answer doesn't seems to be able to satisfy my needs. Is this styling necessary for lexical to work? note: I can use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update on some research: forcing This seems that "whitespace" in browser are not html entities, cause it to get consume, if we ownself add a white space, it get added as Edit: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space#values both End-of-line spaces and End-of-line other space separators is the only one with both value set to Hang, which i believe is why this configuration is necessary. To achieve the single line effect, we should instead set the |
Beta Was this translation helpful? Give feedback.
Update on some research:
forcing
nowrap
seems to cause caret to sometimes not able to select end of line whitespace it seems. So it does seems like lexical state do depends onpre-wrap
being set. Would be nice if we have some confirmation.This seems that "whitespace" in browser are not html entities, cause it to get consume, if we ownself add a white space, it get added as
Edit:
pre-wrap
is necessary mainly because of the collapsing behavior of end of line, as illustrated in the table inhttps://developer.mozilla.org/en-US/docs/Web/CSS/white-space#values
both End-of-line spaces and End-of-line other space separators is the only one with both value set to Hang, which i believe is w…