lexical-ios icon indicating copy to clipboard operation
lexical-ios copied to clipboard

Import HTML into LexicalView/Editor

Open khurram18 opened this issue 10 months ago • 0 comments

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?

khurram18 avatar Apr 11 '24 17:04 khurram18