From a9d86432b7aac9a3ead327c7d32ddbdb94e25fdb Mon Sep 17 00:00:00 2001 From: Patricia Romaniuc Date: Tue, 3 Mar 2026 15:25:28 +0200 Subject: [PATCH] fix(editable-html-tip-tap): adjust placeholder styling for empty paragraphs to prevent extra height --- packages/editable-html-tip-tap/src/components/EditableHtml.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/editable-html-tip-tap/src/components/EditableHtml.jsx b/packages/editable-html-tip-tap/src/components/EditableHtml.jsx index 7a95b30bd..389f1eabc 100644 --- a/packages/editable-html-tip-tap/src/components/EditableHtml.jsx +++ b/packages/editable-html-tip-tap/src/components/EditableHtml.jsx @@ -361,7 +361,8 @@ const StyledEditorContent = styled(EditorContent, { '& p.is-editor-empty:first-child::before': { content: 'attr(data-placeholder)', - display: 'block', + float: 'left', + height: 0, color: '#9CA3AF', pointerEvents: 'none', whiteSpace: 'pre-wrap',