diff --git a/private/css/cms.tiptap.css b/private/css/cms.tiptap.css index 687349a4..70942b05 100644 --- a/private/css/cms.tiptap.css +++ b/private/css/cms.tiptap.css @@ -97,6 +97,7 @@ p:not(.is-empty) > br.ProseMirror-trailingBreak { border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid var(--dca-gray-lighter, var(--hairline-color)); + box-shadow: none; border-bottom: none; .dropdown-content { inset-block-start: 100%; diff --git a/private/js/cms.tiptap.js b/private/js/cms.tiptap.js index ea03f5fe..f8aeef16 100644 --- a/private/js/cms.tiptap.js +++ b/private/js/cms.tiptap.js @@ -139,6 +139,9 @@ class CMSTipTapPlugin { if (el.tagName === 'TEXTAREA') { // Not inline this._createTopToolbar(editorElement, editor, options); + if (el.rows) { + editorElement.querySelector('.tiptap').style.height = el.rows * 1.5 + 'em'; + } } else { // Inline this._createTopToolbar(editorElement, editor, options, 'mark');