diff --git a/packages/client/src/tiptap/core/index.tsx b/packages/client/src/tiptap/core/index.tsx index 56edec90..ec6459cd 100644 --- a/packages/client/src/tiptap/core/index.tsx +++ b/packages/client/src/tiptap/core/index.tsx @@ -36,15 +36,13 @@ export const useEditor = (options: Partial = {}, deps: Dependency setEditor(instance); - if (!options.editable) { - instance.on('transaction', () => { + instance.on('transaction', () => { + requestAnimationFrame(() => { requestAnimationFrame(() => { - requestAnimationFrame(() => { - forceUpdate(); - }); + forceUpdate(); }); }); - } + }); return () => { instance.destroy();