diff --git a/memento-note/components/rich-text-editor.tsx b/memento-note/components/rich-text-editor.tsx index cda5dff..77205fc 100644 --- a/memento-note/components/rich-text-editor.tsx +++ b/memento-note/components/rich-text-editor.tsx @@ -201,11 +201,13 @@ export const RichTextEditor = forwardRef document.body, - zIndex: 99999, - fallbackPlacements: ['bottom', 'top'] - }} + {...({ + tippyOptions: { + appendTo: () => document.body, + zIndex: 99999, + fallbackPlacements: ['bottom', 'top'] + } + } as any)} shouldShow={({ editor: e, state }: { editor: Editor; state: EditorState }) => { const { from, to } = state.selection const isImage = e.isActive('image')