From 8f3e2ff663ae4d28c749c87e6fca04a1dfc672d1 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 21 Jul 2024 20:50:08 +0100 Subject: [PATCH] fix editor placeholder bug --- apps/client/src/features/editor/extensions/extensions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/client/src/features/editor/extensions/extensions.ts b/apps/client/src/features/editor/extensions/extensions.ts index 1453b2c2..932fffa6 100644 --- a/apps/client/src/features/editor/extensions/extensions.ts +++ b/apps/client/src/features/editor/extensions/extensions.ts @@ -66,7 +66,9 @@ export const mainExtensions = [ if (node.type.name === "detailsSummary") { return "Toggle title"; } - return 'Write anything. Enter "/" for commands'; + if (node.type.name === "paragraph") { + return 'Write anything. Enter "/" for commands'; + } }, includeChildren: true, }),