mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-22 09:35:08 +02:00
BlockNoteReader (read-only docs) doesn't register the find & replace tiptap extension. If the panel is left open while the active editor switches to it -- e.g. a collaborative doc turning read-only after a WebSocket disconnect -- calling into its commands threw "commands.clearSearch is not a function". useFindReplace now exposes whether the current editor actually supports find & replace, and FindReplace closes the panel and renders nothing when it doesn't, instead of crashing.