Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: Cross platform (web/iOS) compatibility for TextNode 'style' field #4286

Open
amyworrall opened this issue Apr 7, 2023 · 0 comments
Labels
core Reconciler, DOM, Selection, Node, Events, Composition discussion

Comments

@amyworrall
Copy link
Contributor

Please see Issue 20 on facebook/lexical-ios for a description!

I would like to discuss this issue with anyone who is interested in cross-platform compatibility of Lexical data models, be it via JSON serialization (possible today) or via collaborative editing (coming in the future on iOS), hence posting an issue in the Lexical JS repository as well as in Lexical iOS.

The TLDR is, TextNode has a style field, which is arbitrary CSS information. Lexical iOS is not styled via CSS, and currently we don't handle this field. The question is what should we do -- attempt to convert the data, come up with a universal format, or just let the two platforms approach styling of text nodes separately and punt the problem on to the API consumer to handle syncing them up. Or maybe there's an approach I haven't thought of yet.

Comments and discussions welcome.

@zurfyx zurfyx added discussion core Reconciler, DOM, Selection, Node, Events, Composition labels Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Reconciler, DOM, Selection, Node, Events, Composition discussion
Projects
None yet
Development

No branches or pull requests

2 participants