From 5e55849716753f15523e8f02790f0486fe7e1491 Mon Sep 17 00:00:00 2001 From: Benjamin VIELLARD Date: Thu, 20 Apr 2023 20:52:19 +0200 Subject: [PATCH] feat: merge and split cells #17 --- src/icons/merge-cells.vue | 7 +++++++ src/icons/split-cell.vue | 7 +++++++ src/messages.json | 8 ++++++-- src/tiptap-editor.vue | 22 ++++++++++++++++++++++ 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 src/icons/merge-cells.vue create mode 100644 src/icons/split-cell.vue diff --git a/src/icons/merge-cells.vue b/src/icons/merge-cells.vue new file mode 100644 index 0000000..e39fc3d --- /dev/null +++ b/src/icons/merge-cells.vue @@ -0,0 +1,7 @@ + diff --git a/src/icons/split-cell.vue b/src/icons/split-cell.vue new file mode 100644 index 0000000..7409305 --- /dev/null +++ b/src/icons/split-cell.vue @@ -0,0 +1,7 @@ + diff --git a/src/messages.json b/src/messages.json index 00bca8f..ef45357 100644 --- a/src/messages.json +++ b/src/messages.json @@ -15,7 +15,9 @@ "table_delete_column": "Delete column", "table_add_row_before": "Add row before", "table_add_row_after": "Add row after", - "table_delete_row": "Delete row" + "table_delete_row": "Delete row", + "table_merge_cells": "Merge cells", + "table_split_cell": "Split cell" } }, "fr": { @@ -34,7 +36,9 @@ "table_delete_column": "Supprimer la colonne", "table_add_row_before": "Ajouter une ligne avant", "table_add_row_after": "Ajouter une ligne après", - "table_delete_row": "Supprimer la ligne" + "table_delete_row": "Supprimer la ligne", + "table_merge_cells": "Fusionner les cellules", + "table_split_cell": "Diviser la cellule" } } } diff --git a/src/tiptap-editor.vue b/src/tiptap-editor.vue index cdc18ff..0fad229 100644 --- a/src/tiptap-editor.vue +++ b/src/tiptap-editor.vue @@ -306,6 +306,26 @@ + + + + + + + + + + + +