mirror of https://github.com/fantasticit/think.git
tiptap: fix render doc
This commit is contained in:
parent
7685ca4be3
commit
a066a14537
|
@ -36,7 +36,6 @@ 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(() => {
|
||||||
|
@ -44,7 +43,6 @@ export const useEditor = (options: Partial<EditorOptions> = {}, deps: Dependency
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
instance.destroy();
|
instance.destroy();
|
||||||
|
|
Loading…
Reference in New Issue