mirror of https://github.com/fantasticit/think.git
tiptap: fix render doc
This commit is contained in:
parent
7685ca4be3
commit
a066a14537
|
@ -36,15 +36,13 @@ export const useEditor = (options: Partial<EditorOptions> = {}, deps: Dependency
|
||||||
|
|
||||||
setEditor(instance);
|
setEditor(instance);
|
||||||
|
|
||||||
if (!options.editable) {
|
instance.on('transaction', () => {
|
||||||
instance.on('transaction', () => {
|
requestAnimationFrame(() => {
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
requestAnimationFrame(() => {
|
forceUpdate();
|
||||||
forceUpdate();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
instance.destroy();
|
instance.destroy();
|
||||||
|
|
Loading…
Reference in New Issue