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:
@@ -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]));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user