-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Text formatting of token text nodes #6059
Comments
lacroixdavid1
added a commit
to lacroixdavid1/lexical
that referenced
this issue
May 8, 2024
Closing as PR was merged. |
This was referenced Jun 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
RangeSelection.formatText
function does not format token text nodes between the range selection. Is there a reason why? I wish I could have text nodes that support rich-text formatting and still behave like text nodes. Any solutions?Reference:
lexical/packages/lexical/src/LexicalSelection.ts
Line 1168 in 1154413
EDIT:
lexical/packages/lexical/src/LexicalSelection.ts
Line 1119 in 1154413
The above IF occurring when only a single node is selected allows token text node to be formatted. I don't see any reason why nodes in the middle of the selection shouldn't be formatted either. This behaviour is inconsistent. I can open a Pull Request if you are open to this.
Thank you!
The text was updated successfully, but these errors were encountered: