feat: add table and image context menus with localization support

- Implemented context menus for table operations including adding, deleting rows/columns, and alignment options.
- Added context menu for image operations such as replacing, toggling caption, resetting size, and deleting images.
- Updated English and Chinese localization files to include new menu options for table and image functionalities.
This commit is contained in:
2026-04-05 22:41:48 +08:00
parent 94f7186cce
commit 0e2ad4ed16
3 changed files with 1258 additions and 18 deletions
+18
View File
@@ -417,6 +417,24 @@ const zhCN = {
empty: "拖拽选择表格尺寸",
hint: "按住拖动到边缘可继续扩展",
},
tableMenu: {
addRowBefore: "上方插行",
addRowAfter: "下方插行",
deleteRow: "删除行",
addColBefore: "左侧插列",
addColAfter: "右侧插列",
deleteCol: "删除列",
alignLeft: "左对齐",
alignCenter: "居中",
alignRight: "右对齐",
deleteTable: "删除表格",
},
imageMenu: {
replace: "替换图片",
caption: "切换图注",
resetSize: "重置大小",
delete: "删除图片",
},
messages: {
saved: "文章已保存",
generating: "文章还在生成中,请稍后再编辑。",