Earlier quoted context omitted.
No idea :D https://github.com/facebook/lexical/pull/1733
I thought it was some kind of crazy obscure low-level optimization black magic, but probably not. :)
Facebook open sources Lexical, an extensible text editor library
131–140 of 141 posts
Re: Facebook open sources Lexical, an extensible text editor library
#132Earlier quoted context omitted.
Perhaps not intentionally broken but I still have issues with double texting on the Messenger mac/web app. iMessages also has this issues as well... Telegram, Discord, WeChat, MSN Messenger, etc. all seem to have figured out how to prevent double texts from occurring.
Excuse my ignorance, but what is a "double text"?
Re: Facebook open sources Lexical, an extensible text editor library
#133How hard it’ll be to build a notion like UX using lexical ? Have been using editorjs for same
I'd like to hear anyone else's experience of building a Notion like editor (or any other block based/full page editor) Something guides never cover and I am stuck on is how to let users drop "widgets" into these RTEs. Think photos and galleries, where what is displayed in the editor is not what is present in the output (the real output could be 1+ React tags with attributes set) ; tables where the edit view is a spre…
Re: Facebook open sources Lexical, an extensible text editor library
#134Earlier quoted context omitted.
Hey Adam, is Meta using / planning on using Lexical for React Native as well?
Adam? You mean Dominic/trueadm? We have some ideas for supporting RN once we have iOS/Android versions of Lexical.
Re: Facebook open sources Lexical, an extensible text editor library
#135Let's say I'm building a stack overflow style editor (you type markdown and it gets rendered in a preview tab) -- would there be any reason to use lexical?
Yeah, you could easily do that. We do the exactly that right now for Workplace. You could also roll with a ` ` but that can be limiting if you want additional functionality further on down the line – such as mentions or inline markdown shortcuts.
And is the idea of mentions that we can use Lexical to provide nice things like pop-up auto-complete of a username / automatically transform the username into a link inside of the input text?
Re: Facebook open sources Lexical, an extensible text editor library
#136Let's say I'm building a stack overflow style editor (you type markdown and it gets rendered in a preview tab) -- would there be any reason to use lexical?
Yeah, you could easily do that. We do the exactly that right now for Workplace. You could also roll with a ` ` but that can be limiting if you want additional functionality further on down the line – such as mentions or inline markdown shortcuts.
Live preview = the editor is WYSIWYG but the storage format is Markdow
Re: Facebook open sources Lexical, an extensible text editor library
#137Earlier quoted context omitted.
But, let's say I'd like to parse this stored state and send an email (as HTML) on the server? My best guess is to use a NodeJS/V8 instance on the server to somehow transform JSON to HTML using Lexical's serializer (if something like that exists). Even this is tricky because it might depend on browser DOM apis for the conversion. A better solution would be support language specific bindings to get HTML from JSON with…
Yeah, I'd roll with Node/Deno and use Lexical that way. :)
Re: Facebook open sources Lexical, an extensible text editor library
#138Re: Facebook open sources Lexical, an extensible text editor library
#139Earlier quoted context omitted.
But, let's say I'd like to parse this stored state and send an email (as HTML) on the server? My best guess is to use a NodeJS/V8 instance on the server to somehow transform JSON to HTML using Lexical's serializer (if something like that exists). Even this is tricky because it might depend on browser DOM apis for the conversion. A better solution would be support language specific bindings to get HTML from JSON with…
Yeah, I'd roll with Node/Deno and use Lexical that way. :)
Re: Facebook open sources Lexical, an extensible text editor library
#140Is this meant to be a good drop-in rich-text/WYSIWYG editor? What is the format that it creates that you could then persist in a database? Does it just save its state in HTML or some JSON format or what?
The core Lexical library is really a framework for building such editors. However, we also provide many common rich-text features out-of-the-box via separate packages, such as @lexical/rich-text. We also expose bindings for React (and hope to have them for other frameworks soon). Check out the lexical-playground package on GitHub for an example of how you can create a rich-text editor by adding plugins to the Lexical…