-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Bug(?): New paragraph nodes do not follow the alignment of previous paragraphs. #4468
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
Bug(?): New paragraph nodes do not follow the alignment of previous paragraphs. #4468
Comments
I was wondering the same thing. |
@michaelsoultanidis did you end up solving it? I'm experiencing the same issue. |
You can use Shift+Enter for the moment, since it adds in the same paragraph this way vs a new paragraph with default alignment of 'left'. I agree this should be amended. Not sure on what the best approach here is, looking at the previous node does seem reasonable, but should be discussed. |
Thanks @ivailop7. How does copying the previous paragraph style work then (e.g. font-color)? Both text-alignment and font-color are CSS properties of the TextNode. |
I believer you are correct, yes, either it's missing a property in the place where it carries over the font style, which should be a simple fix or other logic overrides it. |
New paragraphs created using the
Enter
key do not follow the same alignment as the previous paragraph. I'm not sure if this is a bug or done intentionally.Lexical version: Latest
Steps To Reproduce
Screen.Recording.2023-05-08.at.1.09.40.PM.mov
The text was updated successfully, but these errors were encountered: