Add placeholder

This commit is contained in:
Jon Staab
2024-10-31 09:07:18 -07:00
parent 64f2ad5bf7
commit 2800b15319
+9 -1
View File
@@ -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 {