Re:Lexical – a web text editor framework that powers Facebook
by acywatson on Tuesday June 21, 2022 @11:55AM
(#31825391)
Yes, we have something like this in @lexical/selection: https://github.com/facebook/lexical/blob/af099ffd9f464b523d6...
Re:Lexical – a web text editor framework that powers Facebook
by afd8856 on Tuesday June 21, 2022 @01:02AM
(#31820082)
Just mentioning SlateJS which has [decorations](https://docs.slatejs.org/concepts/09-rendering#decorations) for this
Does Lexical have a feature to set arbitrary CSS on a particular selection range? I've been looking for a solution to do this since the WebKit's -[WebView applyStyle:] is deprecated as part of WebView Legacy. It isn't clear to me from glancing at the docs if RangeSelection.formatText() or other methods can handle anything or just a subset of styling code. Thanks!