1
0
mirror of synced 2026-03-22 18:48:34 +08:00

feat(editor): 多选菜单支持复制粘贴删除 (#217)

* feat(editor): 多选菜单支持复制粘贴删除

* fix(editor): 编辑器选中节点统一为nodes数组,保留原node对象为nodes数组的第一个元素,将复制粘贴删除行为封装到editorservice中,支持键盘快捷键

* test(editor): 修改editor相关测试用例

* fix(editor): cr问题修改

* feat(editor): 将复制粘贴操作进行拆分封装

* fix(editor): cr修改

Co-authored-by: parisma <parisma@tencent.com>
This commit is contained in:
khuntoriia
2022-08-03 14:03:36 +08:00
committed by GitHub
parent a02fd2c695
commit b702857aad
10 changed files with 428 additions and 254 deletions

View File

@@ -353,7 +353,7 @@ describe('copy', () => {
const node = editorService.getNodeById(NodeId.NODE_ID2);
await editorService.copy(node!);
const str = globalThis.localStorage.getItem(COPY_STORAGE_KEY);
expect(str).toBe(JSON.stringify(node));
expect(str).toBe(JSON.stringify([node]));
});
});