mirror of https://github.com/fantasticit/think.git
fix(tiptap): fix #83
parent
a03312b816
commit
854f796a58
|
@ -70,9 +70,9 @@ export const EditorInstance = forwardRef((props: IProps, ref) => {
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
onTransaction({ transaction }) {
|
onUpdate({ transaction }) {
|
||||||
try {
|
try {
|
||||||
const title = transaction.doc.content.firstChild.content.firstChild.textContent;
|
const title = transaction.doc.content.firstChild.content.firstChild?.textContent;
|
||||||
onTitleUpdate(title);
|
onTitleUpdate(title);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue