Skip to content

Build your personal knowledge base with Trilium Notes

client/text editor/tables: rename "Reset merged cells" to "Unmerge cells"

Adorian Dorana879b8b1f1c2
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 5b6576114b..1089c3197f 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -4373,7 +4373,7 @@
"date-time": "Date/time",
"distribute-columns-evenly": "Distribute columns evenly",
"merge-selected-cells": "Merge selected cells",
- "reset-merged-cells": "Reset merged cells"
+ "unmerge-cells": "Unmerge cells"
},
"task-state-dropped-title": "Invalid task states",
"task-state-dropped-message_one": "A custom task state definition is invalid and was ignored.",
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Tables.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Tables.html
index ed8a3b398f..18d26ad285 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Tables.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Tables.html
@@ -153,14 +153,14 @@ src="3_Tables_image.png" width="384" height="100">
as pressing the button itself.</li>
<li>Select <em>Split cell vertically</em> or <em>horizontally</em>, to split
a cell into multiple cells (can also be used to undo a merge).</li>
- <li>Select <em>Reset merged cells</em> to turn each merged cell in the selection
+ <li>Select <em>Unmerge cells</em> to turn each merged cell in the selection
back into the single cells it covers, keeping its content in the top-left
one.</li>
</ul>
-<p><em>Merge selected cells</em> and <em>Reset merged cells</em> are available
- since v0.107.0. Merging and splitting are also available by right-clicking
- the selected cells, via the <a href="#context-menu">context menu</a>, where <em>Split cell</em> → <em>Unmerge cells</em> does
- the same as <em>Reset merged cells</em>.</p>
+<p><em>Merge selected cells</em> and <em>Unmerge cells</em> are available since
+ v0.107.0. Merging and splitting are also available by right-clicking the
+ selected cells, via the <a href="#context-menu">context menu</a>, where <em>Unmerge cells</em> is
+ in the <em>Split cell</em> submenu.</p>
<h2>Table properties</h2>
<figure class="image image-style-align-right">
<img style="aspect-ratio:312/311;" src="Tables_image.png" width="312"
diff --git a/docs/User Guide/User Guide/Note Types/Text/Tables.md b/docs/User Guide/User Guide/Note Types/Text/Tables.md
index 12c8df9a8e..0fc2485722 100644
--- a/docs/User Guide/User Guide/Note Types/Text/Tables.md
+++ b/docs/User Guide/User Guide/Note Types/Text/Tables.md
@@ -87,9 +87,9 @@ More options are available by pressing the arrow next to it:
* Click on a single cell and select Merge cell up/down/right/left to merge with an adjacent cell.
* Select _Merge selected cells_ to merge the selected cells, the same as pressing the button itself.
* Select _Split cell vertically_ or _horizontally_, to split a cell into multiple cells (can also be used to undo a merge).
-* Select _Reset merged cells_ to turn each merged cell in the selection back into the single cells it covers, keeping its content in the top-left one.
+* Select _Unmerge cells_ to turn each merged cell in the selection back into the single cells it covers, keeping its content in the top-left one.
-_Merge selected cells_ and _Reset merged cells_ are available since v0.107.0. Merging and splitting are also available by right-clicking the selected cells, via the [context menu](#context-menu), where _Split cell_ → _Unmerge cells_ does the same as _Reset merged cells_.
+_Merge selected cells_ and _Unmerge cells_ are available since v0.107.0. Merging and splitting are also available by right-clicking the selected cells, via the [context menu](#context-menu), where _Unmerge cells_ is in the _Split cell_ submenu.
## Table properties
diff --git a/packages/ckeditor5/src/plugins/table_toolbar_dropdowns.spec.ts b/packages/ckeditor5/src/plugins/table_toolbar_dropdowns.spec.ts
index 77685f60eb..5725794e61 100644
--- a/packages/ckeditor5/src/plugins/table_toolbar_dropdowns.spec.ts
+++ b/packages/ckeditor5/src/plugins/table_toolbar_dropdowns.spec.ts
@@ -50,7 +50,7 @@ describe("TableToolbarDropdowns", () => {
...upstreamMergeItems.slice(0, splitIndex),
"mergeTableCells: Merge selected cells",
...upstreamMergeItems.slice(splitIndex),
- "triliumResetTableCellSpans: Reset merged cells"
+ "triliumResetTableCellSpans: Unmerge cells"
]);
});
}
@@ -82,15 +82,15 @@ describe("TableToolbarDropdowns", () => {
const mergeDropdown = getDropdown(editor, "mergeTableCells");
expect(getItem(columnDropdown, "Distribute columns evenly").isEnabled).toBe(false);
expect(getItem(mergeDropdown, "Merge selected cells").isEnabled).toBe(false);
- expect(getItem(mergeDropdown, "Reset merged cells").isEnabled).toBe(false);
+ expect(getItem(mergeDropdown, "Unmerge cells").isEnabled).toBe(false);
selectCells(editor, [0, 0], [0, 1]);
expect(getItem(columnDropdown, "Distribute columns evenly").isEnabled).toBe(true);
expect(getItem(mergeDropdown, "Merge selected cells").isEnabled).toBe(true);
- expect(getItem(mergeDropdown, "Reset merged cells").isEnabled).toBe(false);
+ expect(getItem(mergeDropdown, "Unmerge cells").isEnabled).toBe(false);
editor.execute("mergeTableCells");
- expect(getItem(mergeDropdown, "Reset merged cells").isEnabled).toBe(true);
+ expect(getItem(mergeDropdown, "Unmerge cells").isEnabled).toBe(true);
});
it("runs the command of a clicked item and focuses the editing view", () => {
@@ -107,7 +107,7 @@ describe("TableToolbarDropdowns", () => {
const mergeDropdown = getDropdown(editor, "mergeTableCells");
clickItem(mergeDropdown, "Merge selected cells");
expect(execute).toHaveBeenLastCalledWith("mergeTableCells");
- clickItem(mergeDropdown, "Reset merged cells");
+ clickItem(mergeDropdown, "Unmerge cells");
expect(execute).toHaveBeenLastCalledWith("triliumResetTableCellSpans");
expect(mergeDropdown.isOpen).toBe(false);
expect(focus).toHaveBeenCalledTimes(3);
@@ -133,7 +133,7 @@ describe("TableToolbarDropdowns", () => {
getElement(splitButton.actionView).click();
expect(execute).toHaveBeenCalledWith("mergeTableCells");
expect(dropdown.isOpen).toBe(false);
- expect(getItem(dropdown, "Reset merged cells").isEnabled).toBe(true);
+ expect(getItem(dropdown, "Unmerge cells").isEnabled).toBe(true);
});
it("leaves out an item whose command is not registered", () => {
diff --git a/packages/ckeditor5/src/plugins/table_toolbar_dropdowns.ts b/packages/ckeditor5/src/plugins/table_toolbar_dropdowns.ts
index 472ceb21e9..8f521f8c33 100644
--- a/packages/ckeditor5/src/plugins/table_toolbar_dropdowns.ts
+++ b/packages/ckeditor5/src/plugins/table_toolbar_dropdowns.ts
@@ -23,7 +23,7 @@ import TableContextMenu from "./table_context_menu.js";
/**
* Replaces the `tableColumn` and `mergeTableCells` dropdowns of `TableUI` with copies that add
* commands of the table context menu: "Distribute columns evenly", "Merge selected cells" and
- * "Reset merged cells".
+ * "Unmerge cells".
*
* `TableUI` builds its item lists in private methods, so the dropdowns are rebuilt from public
* helpers and command names instead of patched. The spec compares them with the upstream
@@ -78,7 +78,7 @@ export default class TableToolbarDropdowns extends Plugin {
SEPARATOR_ITEM,
buttonItem("splitTableCellVertically", t("Split cell vertically")),
buttonItem("splitTableCellHorizontally", t("Split cell horizontally")),
- buttonItem("triliumResetTableCellSpans", t("Reset merged cells"))
+ buttonItem("triliumResetTableCellSpans", t("Unmerge cells"))
]
}));
}