From eb7e0c3f6a4abc7d0a5d2b4ec3ca2e255e187cd8 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Sun, 22 Dec 2024 22:31:23 +0100 Subject: [PATCH] Add resizable columns --- private/css/cms.tiptap.css | 5 +++++ private/js/cms.tiptap.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/private/css/cms.tiptap.css b/private/css/cms.tiptap.css index fadd985..98dd70f 100644 --- a/private/css/cms.tiptap.css +++ b/private/css/cms.tiptap.css @@ -67,6 +67,11 @@ box-shadow: 0 0 2px Highlight; } } + &.ProseMirror-focused { + td, th { + outline: Highlight solid 0.5px; + } + } & cms-plugin { pointer-events: auto; a { diff --git a/private/js/cms.tiptap.js b/private/js/cms.tiptap.js index f217f1a..8fcb5e6 100644 --- a/private/js/cms.tiptap.js +++ b/private/js/cms.tiptap.js @@ -44,7 +44,7 @@ class CMSTipTapPlugin { Subscript, Superscript, Table.configure({ - resizable: false, + resizable: true, HTMLAttributes: { class: 'table', },