tiptap: fix title class

This commit is contained in:
fantasticit 2022-06-25 11:05:21 +08:00
parent 8b2e6d1adb
commit 6cde76130e
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ export const Title = Node.create<TitleOptions>({
addOptions() {
return {
HTMLAttributes: {
class: 'title',
class: 'node-title',
},
};
},
@ -47,7 +47,7 @@ export const Title = Node.create<TitleOptions>({
parseHTML() {
return [
{
tag: 'div[class=title]',
tag: 'div[class=node-title]',
},
];
},