{"record":{"id":"a97c5ff5675027c4","repo":"ueberdosis/tiptap","slug":"floatingmenu-component-is-not-rendered-inside-of-a","errorCode":null,"errorMessage":"FloatingMenu component is not rendered inside of an editor component or does not have editor prop.","messagePattern":"FloatingMenu component is not rendered inside of an editor component or does not have editor prop\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/react/src/menus/FloatingMenu.tsx","lineNumber":93,"sourceCode":"    /**\n     * Track whether the plugin has been initialized, so we only send updates\n     * after the initial registration.\n     */\n    const [pluginInitialized, setPluginInitialized] = useState(false)\n\n    /**\n     * Track whether we need to skip the first options update dispatch.\n     * This prevents unnecessary updates right after plugin initialization.\n     */\n    const skipFirstUpdateRef = useRef(true)\n\n    useEffect(() => {\n      if (pluginEditor?.isDestroyed) {\n        return\n      }\n\n      if (!pluginEditor) {\n        console.warn(\n          'FloatingMenu component is not rendered inside of an editor component or does not have editor prop.',\n        )\n        return\n      }\n\n      const floatingMenuElement = menuEl.current\n      floatingMenuElement.style.visibility = 'hidden'\n      floatingMenuElement.style.position = 'absolute'\n\n      const plugin = FloatingMenuPlugin({\n        ...floatingMenuPluginPropsRef.current,\n        editor: pluginEditor,\n        element: floatingMenuElement,\n      })\n\n      pluginEditor.registerPlugin(plugin)\n\n      const createdPluginKey = floatingMenuPluginPropsRef.current.pluginKey","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/react/src/menus/FloatingMenu.tsx#L75-L111","documentation":"Error \"FloatingMenu component is not rendered inside of an editor component or does not have editor prop.\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/react/src/menus/FloatingMenu.tsx:93 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}