diff --git a/common/modules/mixly-modules/common/file-tree.js b/common/modules/mixly-modules/common/file-tree.js index 96b6fb4c..9dfea714 100644 --- a/common/modules/mixly-modules/common/file-tree.js +++ b/common/modules/mixly-modules/common/file-tree.js @@ -345,8 +345,14 @@ class FileTree extends Component { isHtmlName: true, name: Menu.getItem(Msg.Lang['editor.contextMenu.paste'], ''), callback: (_, { $trigger }) => { - let id = $trigger.attr('id'); - this.pasteNode(id); + const type = $trigger.attr('type'); + if (type === 'root') { + this.openRootFolder(); + this.pasteNode('/'); + } else { + const id = $trigger.attr('id'); + this.pasteNode(id); + } } } });