# Find and Replace Search, navigate and replace text from a toolbar popover. ## Installation ```bash npx shadcn@latest add litingyes/blocove/rich-text-editor-find-and-replace ``` > Typography requires [shadcn/typeset](https://ui.shadcn.com/docs/typeset). Copy `typeset.css` next to your main stylesheet, import it after Tailwind and add the `.typeset-docs` preset. The search field waits for the input method to commit before it searches, so composing a character never moves the highlights mid-word. ## API Reference ### EditorFindAndReplace Registers the search plugin and its commands. Options pass through to the extension. | Prop | Type | Default | | --- | --- | --- | | `searchTerm` | `string` | `""` | | `replaceTerm` | `string` | `""` | | `caseSensitive` | `boolean` | `false` | | `useRegex` | `boolean` | `false` | | `wholeWord` | `boolean` | `false` | | `searchDebounceMs` | `number` | `250` | ### EditorFindAndReplaceToolbar Popover with the search field, the replacement field, the result counter and the navigation and replace actions. | Prop | Type | Default | | --- | --- | --- | | `className` | `string` | - | ## Registry dependencies - `litingyes/blocove/rich-text-editor` - `litingyes/blocove/rich-text-editor-extension` - `button` - `input` - `popover` Namespace: `npx shadcn@latest add @blocove/rich-text-editor-find-and-replace`