This pull request addresses the issue #981 where the "Toggle Highlight" feature in the WYSIWYG text editor was not functioning correctly. Users could apply highlights to text, but they were unable to remove the highlight once applied.
Changes Made
Fixed Toggle Highlight Functionality:
Updated the code logic to ensure that the highlight can now be toggled off as well as on.
Ensured that the editor state updates correctly when the highlight is removed.
Steps to Test
Open the WYSIWYG text editor.
Select some text and click the Toggle highlight button to apply a highlight.
Click the "Highlight" button again to remove the highlight.
Verify that the highlight is successfully removed.
Pull Request Description
Summary
This pull request addresses the issue #981 where the "Toggle Highlight" feature in the
WYSIWYG
text editor was not functioning correctly. Users could apply highlights to text, but they were unable to remove the highlight once applied.Changes Made
Steps to Test
Toggle highlight
button to apply a highlight.Outcome Screenshots
https://github.com/user-attachments/assets/dd04ef17-4fef-4f08-af73-415d5d6161e2
Additional Notes
Thank you for considering this update!