verbum
verbum copied to clipboard
Error: parseEditorState: type "heading" + not found
Describe the bug Error: parseEditorState: type "heading" + not found
const state = '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"color: #000000;background-color: #ffffff;","text":"333888","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h1"}],"direction":null,"format":"","indent":0,"type":"root","version":1}}'
const newEditorState = newEditor.parseEditorState(state);