themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.89k stars 742 forks source link

fix Toogle highlight in wysiwyg.md #982

Closed qwjzka closed 2 weeks ago

qwjzka commented 2 weeks ago

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

  1. Open the WYSIWYG text editor.
  2. Select some text and click the Toggle highlight button to apply a highlight.
  3. Click the "Highlight" button again to remove the highlight.
  4. Verify that the highlight is successfully removed.

Outcome Screenshots

https://github.com/user-attachments/assets/dd04ef17-4fef-4f08-af73-415d5d6161e2

Additional Notes

Thank you for considering this update!

qwjzka commented 2 weeks ago

And original, it will show like below.

https://github.com/user-attachments/assets/0e3c7cda-1d5b-44ab-b659-370beed72741

zoltanszogyenyi commented 2 weeks ago

Thanks for contributing! Merged :)