From 2800b1531996867a5e2b6cf3e8647f88b7b132f3 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 31 Oct 2024 09:07:18 -0700 Subject: [PATCH] Add placeholder --- src/app.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app.css b/src/app.css index 1be4174c..e3a1b612 100644 --- a/src/app.css +++ b/src/app.css @@ -197,7 +197,7 @@ } .link-content, -[tag] { +.tiptap [tag] { @apply max-w-full overflow-hidden text-ellipsis whitespace-nowrap rounded bg-neutral px-1 text-neutral-content no-underline; } @@ -205,6 +205,14 @@ @apply bg-primary text-primary-content; } +.tiptap p.is-editor-empty:first-child::before { + content: attr(data-placeholder); + float: left; + height: 0; + pointer-events: none; + opacity: 50%; +} + /* date input */ .date-time-field {