lexical-ios
lexical-ios copied to clipboard
Import HTML into LexicalView/Editor
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?