Skip to content

Import HTML into LexicalView/Editor #60

@khurram18

Description

@khurram18

Currently there is no way to import simple HTML content into LexicalView/Editor. I am using the below code to export the HTML from editor using the sample code from LexicalPlayground app

try? editor.read {
      do {
        self.output = try generateHTMLFromNodes(editor: editor, selection: nil)
      } catch let error {
        self.output = error.localizedDescription
      }
    }

Can anyone please suggest the best way to import this generated output back into LexicalView/Editor?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions