From 3d3261d3afc82e3ed6e8b2e90d8ee441c3ad9b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Sz=C5=91gy=C3=A9nyi?= Date: Fri, 27 Sep 2024 12:12:39 +0300 Subject: [PATCH] feat(wysiwyg): delete table feature and organise buttons --- content/plugins/wysiwyg.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/content/plugins/wysiwyg.md b/content/plugins/wysiwyg.md index 4283dff3..5e32c85c 100644 --- a/content/plugins/wysiwyg.md +++ b/content/plugins/wysiwyg.md @@ -1774,6 +1774,11 @@ window.addEventListener('load', function() { document.getElementById('removeRowButton').addEventListener('click', () => { editor.chain().focus().deleteRow().run(); }); + + // delete table + document.getElementById('deleteTableButton').addEventListener('click', () => { + editor.chain().focus().deleteTable().run(); + }); } }) ` >}} @@ -1791,6 +1796,19 @@ window.addEventListener('load', function() { Add table
+ + +
+ +