steveathon / bootstrap-wysiwyg

Tiny bootstrap-compatible WYSIWYG rich text editor
MIT License
661 stars 1.71k forks source link

selected buttons stuck when after clicking without selecting text #93

Open amjazzed opened 8 years ago

amjazzed commented 8 years ago

I faced this issue were you click anywhere in the edit field , then click the 'bold' button without selecting text . the button will turn activated then clicking on it again to deactivate won't work , it remains selected .

it will work only after typing something .

codewithtyler commented 8 years ago

Typing text and seeing it as bold after hitting the bold button is an expected behavior. As for the buttons not getting deselected that may be a side effect of one of our recent features. I'll take a look at it and see what I can find. Thanks for reporting this!

spreadred commented 7 years ago

I can replicate this behavior as well.

  1. Open new page with editor
  2. Do not type anything
  3. Click "Bold"
  4. Attempt to unclick "Bold"; it stays selected

Note: The Ctrl+B keyboard shortcut does not suffer from this bug.