chore(core): 调整添加menu时的对应参数设置

This commit is contained in:
王立帮
2025-05-18 00:11:11 +08:00
parent fb687bed1f
commit ac6af68999
10 changed files with 68 additions and 62 deletions

View File

@@ -94,12 +94,12 @@ class EditorMix extends EditorBase {
let codeMenu = contextMenu.getItem('code');
codeMenu.add({
weight: 6,
type: 'sep2',
id: 'sep2',
data: '---------'
});
codeMenu.add({
weight: 7,
type: 'block',
id: 'block',
data: {
isHtmlName: false,
name: Msg.Lang['editor.contextMenu.exitCodeEditor'],
@@ -109,7 +109,7 @@ class EditorMix extends EditorBase {
let blockMenu = new Menu();
blockMenu.add({
weight: 0,
type: 'copy',
id: 'copy',
data: {
isHtmlName: true,
name: ContextMenu.getItem(Msg.Lang['editor.contextMenu.copy'], 'Ctrl+C'),
@@ -118,12 +118,12 @@ class EditorMix extends EditorBase {
});
blockMenu.add({
weight: 1,
type: 'sep1',
id: 'sep1',
data: '---------'
});
blockMenu.add({
weight: 2,
type: 'code',
id: 'code',
data: {
isHtmlName: false,
name: Msg.Lang['editor.contextMenu.enterCodeEditor'],