Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find and Replace Plugin Implementation. #4862

Open
Abhishekcs003 opened this issue Jan 3, 2025 · 0 comments
Open

Find and Replace Plugin Implementation. #4862

Abhishekcs003 opened this issue Jan 3, 2025 · 0 comments

Comments

@Abhishekcs003
Copy link

Implemented the Find and Replace feature as a custom plugin for the Froala wysiwyg-editor, addressing a functionality gap within the editor. This feature enables users to search for specific text within the editor's content and replace it efficiently, enhancing the overall editing experience.

The feature can be tested and reviewed via the provided fiddle link: Find and Replace Demo

I believe this addition could be a valuable enhancement to Froala's core capabilities and recommend considering its inclusion in upcoming versions to meet the needs of users who rely on advanced text manipulation within the editor. This could be integrated seamlessly with the editor's existing framework with slight modifications.

Features of the Plugin:
1. Search Functionality: Users can search for specific text or words within the editor and view the total number of occurrences.
The search even works for styled texts also like bold and italic or both combined.
2.Replace Options: Provides the ability to replace a specific occurrence or all occurrences of the searched word with the replacement text.
3.Highlights Matches: Highlights each instance of the searched text, accompanied by a count of total matches for easy identification.
4.Advanced Search Options: Offers advanced search features, including the ability to match case or restrict the search to whole words only.
5. Draggable Popup: The search popup is fully draggable, allowing users to reposition it anywhere within the DOM for better usability.
6.Configurable Keyboard Shortcuts: Allows users to perform search and replace actions quickly using customizable keyboard shortcuts. Ctrl + F will open the popup and Esc key closes the popup.
7.Revert Changes:: User Can also revert the changes by doing undo or Ctrl + Z.
8.User-Friendly Interface: Intuitive design of the popup ensures that both novice and advanced users can efficiently use the search and replace features.

Known issue:
1.Undo Functionality: The undo operation currently reverses all changes made in a single session as a single action, instead of undoing each change step by step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant