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
@@ -410,6 +410,24 @@ const enUS = {
empty: "Drag to choose a table size",
hint: "Keep dragging near the edge to expand the grid",
},
tableMenu: {
addRowBefore: "Insert row above",
addRowAfter: "Insert row below",
deleteRow: "Delete row",
addColBefore: "Insert left column",
addColAfter: "Insert right column",
deleteCol: "Delete column",
alignLeft: "Align left",
alignCenter: "Align center",
alignRight: "Align right",
deleteTable: "Delete table",
},
imageMenu: {
replace: "Replace image",
caption: "Toggle caption",
resetSize: "Reset size",
delete: "Delete image",
},
messages: {
saved: "Article saved.",
generating: "This article is still generating. Try editing it later.",