A module that adds comprehensive find and replace functionality to all ProseMirror editors in Foundry VTT v13+.
- Find & Replace UI: Adds a button to the ProseMirror toolbar that expands to reveal find and replace controls
- Find Next/Previous: Navigate through all matches in your document
- Replace Current: Replace the currently selected match
- Replace All: Replace all matches at once
- Match Case: Optional case-sensitive searching
- Universal Support: Works across all ProseMirror editors (journals, actor sheets, item descriptions, etc.)
- Download the latest release https://github.com/paulcheeba/find-and-replace/releases/latest/download/find-and-replace.zip
- Extract the zip file to your Foundry VTT
Data/modulesfolder - Restart Foundry VTT
- Enable the module in your world's module settings
https://github.com/paulcheeba/find-and-replace/releases/latest/download/module.json
- Open any ProseMirror editor in Foundry VTT (journal entry, actor bio, item description, etc.)
- Click the Find & Replace button in the editor toolbar (located next to the Source HTML button)
- The toolbar will expand to show:
- Find field: Enter your search term
- Find Next/Previous buttons: Navigate between matches
- Replace field: Enter replacement text
- Replace/Replace All buttons: Replace one or all matches
- Match Case checkbox: Toggle case-sensitive searching
- Click the Close button to collapse the toolbar
- Foundry VTT Version: v13 and above
- System Compatibility: Universal (works with all game systems)
- This module uses workarounds that may need updates if Foundry's ProseMirror implementation changes
- Performance with extremely large documents (10,000+ words) may vary
- Some known issues:
- This module can be glitchy, I'll continue to work out the bugs now that the module is fully functional.
- After typing in the Find form field press enter to commit the search, trying to click any button without first pressing enter will close the find/replace UI.
- Sometimes you have to press the find/replace button a couple times before the UI pops up (actor biography for isntance).
- A lot of this is due to how stubburn the ProseMirror UI is being handled by Foundry and this module's changes required some brute force.
This module is licensed under the MIT License.
Author: paulcheeba (crusherDestroyer666)
See CHANGELOG.md for version history.