From 64bb0d991e6924b9e2c30619b8721953a2235eb8 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 26 Jun 2025 14:15:43 -0400 Subject: [PATCH] Revert "fix: ensure editor placeholder respects block padding" This reverts commit 281fe52ac5bb7a92a37a3f74a5ee10e1e77f31cf. --- src/lib/components/edra/editor.css | 34 +----------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/src/lib/components/edra/editor.css b/src/lib/components/edra/editor.css index 76925c6..e0fb323 100644 --- a/src/lib/components/edra/editor.css +++ b/src/lib/components/edra/editor.css @@ -25,37 +25,15 @@ padding-left: 2rem; padding-right: 2rem; } - - .tiptap p.is-empty::before { - padding-left: 2rem; - margin-left: -2rem; - } } /* For Placeholder */ -.tiptap p.is-empty::before { +.tiptap .is-empty::before { pointer-events: none; float: left; height: 0; color: var(--border-color-hover); content: attr(data-placeholder); - padding-left: 2.25rem; - margin-left: -2.25rem; -} - -.tiptap h1.is-empty::before, -.tiptap h2.is-empty::before, -.tiptap h3.is-empty::before, -.tiptap h4.is-empty::before, -.tiptap h5.is-empty::before, -.tiptap h6.is-empty::before { - pointer-events: none; - float: left; - height: 0; - color: var(--border-color-hover); - content: attr(data-placeholder); - padding-left: 2.25rem; - margin-left: -2.25rem; } /* Heading Styles */ @@ -99,16 +77,6 @@ padding-left: 2rem; padding-right: 2rem; } - - .tiptap h1.is-empty::before, - .tiptap h2.is-empty::before, - .tiptap h3.is-empty::before, - .tiptap h4.is-empty::before, - .tiptap h5.is-empty::before, - .tiptap h6.is-empty::before { - padding-left: 2rem; - margin-left: -2rem; - } } .tiptap h1 {