mirror of
https://github.com/fantasticit/think.git
synced 2026-10-30 22:56:06 +08:00
fix(tiptap): fix #83
This commit is contained in:
@@ -70,9 +70,9 @@ export const EditorInstance = forwardRef((props: IProps, ref) => {
|
||||
},
|
||||
}),
|
||||
].filter(Boolean),
|
||||
onTransaction({ transaction }) {
|
||||
onUpdate({ transaction }) {
|
||||
try {
|
||||
const title = transaction.doc.content.firstChild.content.firstChild.textContent;
|
||||
const title = transaction.doc.content.firstChild.content.firstChild?.textContent;
|
||||
onTitleUpdate(title);
|
||||
} catch (e) {
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user