Earlier quoted context omitted.
What does “web text editor framework that powers Facebook” actually mean? I don’t use Facebook, but AFAIK, there are no “blog features” in the platform, are there? Other than a WYSIWYG editor [1], what other use cases do you intend this project for? [1] https://en.wikipedia.org/wiki/WYSIWYG
see https://news.ycombinator.com/item?id=14838232 > The competition has no choice but to spend all their time porting and keeping up, time that they can’t spend writing new features. Look closely at the software landscape. The companies that do well are the ones who rely least on big companies and don’t have to spend all their cycles catching up and reimplementing and fixing bugs that crop up [only on Windows XP.] so…
Lexical – a web text editor framework that powers Facebook
91–100 of 107 posts
Re: Lexical – a web text editor framework that powers Facebook
#92Earlier quoted context omitted.
It's replacing any previous web text editor UX components that we had in the past (likely DraftJS). We're also building Lexical for iOS which is slowly rolling out across iOS devices too.
Well, I want the previous editor back. In fact, just give me a text area. The current editor breaks the selection and, in turn, the clipboard manager, it doesn't work well with Compose and dead keys, and it sometimes ties itself into a knot, and the text can't be edited anymore.
Re: Lexical – a web text editor framework that powers Facebook
#93Earlier quoted context omitted.
Why the sarcasm?
I work at Notion and recently rebuilt much of the editor core, and I don’t think Slate is a good choice because it considers nice, simple code more important than CJK or Android support. Notion doesn’t use Slate or any other editor framework. I just study a lot of editor core code.
Re: Lexical – a web text editor framework that powers Facebook
#94I put Lexical through Hog Bay's Moby Dick test [0] (paste the entirety of Moby Dick, scroll to the middle, and try editing). It didn't pass. AFAIK, only ProseMirror passes, albeit with some lag. [0] https://www.hogbaysoftware.com/posts/moby-dick-workout/
Re: Lexical – a web text editor framework that powers Facebook
#95Hmm, just tried the playground in Firefox on Linux, it’s about as buggy as fancy things like this tend to be. • Inserting emoji with my Compose key: some (e.g. U+1F641) get turned into image-backed emoji and then duplicated unless preceded by another image-backed emoji; some (e.g. U+1F928) get ignored and left as normal text. • If I type an emoji that gets duplicated while inside a link (but not inside bold/italic),…
Re: Lexical – a web text editor framework that powers Facebook
#96Hmm, just tried the playground in Firefox on Linux, it’s about as buggy as fancy things like this tend to be. • Inserting emoji with my Compose key: some (e.g. U+1F641) get turned into image-backed emoji and then duplicated unless preceded by another image-backed emoji; some (e.g. U+1F928) get ignored and left as normal text. • If I type an emoji that gets duplicated while inside a link (but not inside bold/italic),…
Thank for the detailed input. Would it be possible for you to create a GitHub issue around these (or many issues?) so that the team can track them and fix them. Thanks again!
Re: Lexical – a web text editor framework that powers Facebook
#97There do not seem to be text direction controls. I see it does basic heuristic text direction guessing, apparently based on first strong LTR or RTL character in a paragraph, but this is often not adequate for determining text direction correctly, hence the need for explicit control, at least at the paragraph level, ideally also at subparagraph level. Any plans to add such controls? There are about a billion users of…
Re: Lexical – a web text editor framework that powers Facebook
#98Earlier quoted context omitted.
I work at Notion and recently rebuilt much of the editor core, and I don’t think Slate is a good choice because it considers nice, simple code more important than CJK or Android support. Notion doesn’t use Slate or any other editor framework. I just study a lot of editor core code.
What are your thoughts on TipTap?
Re: Lexical – a web text editor framework that powers Facebook
#99I'm the author of Lexical and one of the many engineers working on Lexical full-time at Meta. If you'd like to know anything, or ask any questions, please do! For those of you looking for the sourcecode for the playground, you can find it here: https://github.com/facebook/lexical/tree/main/packages/lexic... We also have a Discord channel you can check out: https://discord.gg/KmG4wQnnD9
Thanks for your work in developing 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!
Re: Lexical – a web text editor framework that powers Facebook
#100Earlier quoted context omitted.
It's replacing any previous web text editor UX components that we had in the past (likely DraftJS). We're also building Lexical for iOS which is slowly rolling out across iOS devices too.
Very interested to know if there are any plans to support React Native? I’ve been struggling to find a good library that doesn’t require a web view.