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

There should be a lexical state to html converter for backend #3671

Closed
burakksekerr opened this issue Nov 5, 2023 · 3 comments · Fixed by #3569
Closed

There should be a lexical state to html converter for backend #3671

burakksekerr opened this issue Nov 5, 2023 · 3 comments · Fixed by #3569

Comments

@burakksekerr
Copy link

burakksekerr commented Nov 5, 2023

Is your feature request related to a problem? Please describe.

We cant use react native client this package https://www.webiny.com/docs/headless-cms/integrations/render-lexical-rich-text-content. Lexical state is converted to html by a custom function.

Describe the feature's behavior.

No response

Describe alternatives you've considered.

No response

@Pavel910
Copy link
Collaborator

Pavel910 commented Nov 5, 2023

@burakksekerr you're in luck :) We're releasing 5.38.0 this week, and it will contain a package which will help you do conversion from Lexical to HTML and vice-versa.

You can test it today by installing a beta version of the package: https://www.npmjs.com/package/@webiny/lexical-converter. The README is not complete, but you can see how it is supposed to be used in the tests. Check this test for conversion to HTML:

https://github.com/webiny/webiny-js/blob/next/packages/lexical-converter/__tests__/stateTransformer.test.ts#L139

@Pavel910 Pavel910 added this to the 5.38.0 milestone Nov 5, 2023
@Pavel910 Pavel910 linked a pull request Nov 5, 2023 that will close this issue
@Pavel910 Pavel910 closed this as completed Nov 5, 2023
@burakksekerr
Copy link
Author

thnx :) @Pavel910

@Pavel910
Copy link
Collaborator

@burakksekerr just to give you a quick update on this: the Lexical converter package is now available, but there are still some issues with using that within Lambda, which we plan to address in 5.39. release coming beginning of 2024. Keep an eye out on that release :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants