Facebook open sources Lexical, an extensible text editor library
71–80 of 141 posts
Re: Facebook open sources Lexical, an extensible text editor library
#72Earlier quoted context omitted.
Awesome! Thank you for this. Would you be able to upload a video or maybe add more context in a Github issue? It's really difficult getting Android right. The combination between browser + keyboard + OS version + keyboard language, it just makes it so much harder than it should be for Android. So any additional context you can provide will be a MASSIVE help. :)
What's your approach to Android support? Are you relying on mutation events, `beforeinput`, something else? I built a really solid android adapter (after spilling gallons of tears) for our Draft.JS fork, and might have a few tips if it's helpful.
If you're curious, this is where it all starts - https://github.com/facebook/lexical/blob/main/packages/lexic...
Re: Facebook open sources Lexical, an extensible text editor library
#73How hard it’ll be to build a notion like UX using lexical ? Have been using editorjs for same
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 spreadsheet & so on.
When I try to build these I get stuck between the representation in the RTE, the final output, and the "edit mode" in the RTE which may be in its own window.
Re: Facebook open sources Lexical, an extensible text editor library
#74Re: Facebook open sources Lexical, an extensible text editor library
#75Re: Facebook open sources Lexical, an extensible text editor library
#76Re: Facebook open sources Lexical, an extensible text editor library
#77Where might I find docs on the output document persisted to the db? Also, reading back this data back into the editor.
Re: Facebook open sources Lexical, an extensible text editor library
#78This feels half baked and confusing. More than half docs page are blank: - https://lexical.dev/docs/concepts/commands - https://lexical.dev/docs/getting-started/quick-start - https://lexical.dev/docs/concepts/extending-nodes - https://lexical.dev/docs/concepts/editor-state - https://lexical.dev/docs/api/lexical - https://lexical.dev/docs/api/lexical-selection - https://lexical.dev/docs/api/lexical-text - https://lexi…
I'm all for criticism. It is great for everyone, but a library gets open sourced and you're complaining about empty docs? Seriously? Just hold off until it's more mature or open up a PR to add some stuff to the docs.
Re: Facebook open sources Lexical, an extensible text editor library
#79Re: Facebook open sources Lexical, an extensible text editor library
#80Earlier quoted context omitted.
Yeah, we're still working on our docs. Watch this space! :)
It would seem the very first thing you would do is provide an example for vanilla JS so that everyone could get started. It is impossible to use this at all for the large proportion of the world that isn't using React as we can't even see a single example. If it's so complicated to use that it takes more than a minute of vanilla JS coding to initialize it, then I don't think I'm interested, thanks all the same.