From 6cde76130edeb23bc11dd6967431a8cc7e462fe1 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Sat, 25 Jun 2022 11:05:21 +0800 Subject: [PATCH] tiptap: fix title class --- packages/client/src/tiptap/core/extensions/title.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/tiptap/core/extensions/title.ts b/packages/client/src/tiptap/core/extensions/title.ts index 1e47cf04..b812c2ae 100644 --- a/packages/client/src/tiptap/core/extensions/title.ts +++ b/packages/client/src/tiptap/core/extensions/title.ts @@ -30,7 +30,7 @@ export const Title = Node.create({ addOptions() { return { HTMLAttributes: { - class: 'title', + class: 'node-title', }, }; }, @@ -47,7 +47,7 @@ export const Title = Node.create({ parseHTML() { return [ { - tag: 'div[class=title]', + tag: 'div[class=node-title]', }, ]; },