You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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:
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: