Arbitrary HTML preservation during import / export roundtrips #7512
vadimkantorov
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can Lexical preserve arbitrary HTML during import / export?
The usecase would be a simplistic CMS, where an HTML landing would be edited using Lexical as a whole file. Such HTML landings are now very well generated by LLMs, so having a super-simple WYSIWYG-style editor (allowing to change text, add paragraphs or replace images) is already useful.
The idea would be that certain HTML sections nodes would be editable (e.g. only those with a designated css class), and the rest would be preserved in the editor state as is, and that their HTML would be exported back in its initial form
Beta Was this translation helpful? Give feedback.
All reactions