Opened 8 years ago
Last modified 7 years ago
#16940 new Bug
Clicking on the disabled toolbar button makes them enabled
Reported by: | IBM RQM | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.3 |
Keywords: | IBM, RQM | Cc: |
Description
Steps to reproduce
- Disable the CK Editor toolbar button using button.setState(CKEDITOR.TRISTATE_DISABLED)
- Click on the same button using mouse.
Expected result
Nothing should happen and toolbar button should stay disabled.
Actual result
Clicking the toolbar button, enables it.
Other details (browser, OS, CKEditor version, installed plugins)
CKEditor version 4.5.3.1 Chrome 52 Windows 7
I have debugged the CKEditor code and CKEditor doesn't check the state of the button before performing the Click action. This issue doesn't occur for combo boxes (Format, Font, Size) as CKEditor checks for its state before performing the action.
ui
because there is no command related to it. Again, it is not context/selection sensitive so this code will work.ui
. The problem with CKEditor default dropdowns is they are all context/selection sensitive so as soon as you hit any dropdown matching style, the dropdown will get enabled again. Please also see: #13852