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
+ +