fix pasteNode
This commit is contained in:
1 parent
00b08988ca
commit
4bdcb06780
2 files changed
+5
-1
No files matched your search
@@ -366,6 +366,7 @@ export default class Editor extends React.Component<EditorProps, EditorState> {
|
||||
if (!str || str == "") {
|
||||
return;
|
||||
}
|
||||
this.onSelectNode(null);
|
||||
const data = JSON.parse(str);
|
||||
if (!curNodeData.children) {
|
||||
curNodeData.children = [];
|
||||
|
||||
Reference in new issue
Block a user