-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
“Remove highlight” button is not following the highlight command disabled state #9174
Comments
Hi, thanks for the report. Could you please provide steps to reproduce the problem, as I'm not sure if I understand your case properly? |
Isn't it a dup of #9021? Which is a dup of some other ticket :D I suppose everyone's annoyed by the same beavior. |
I already create PR. Soon I will provide needed test coverage. |
Sorry for the previous comment. These are indeed separate issues. Excuse me the ignorance once again (I'm not checking the code), but just to be sure – the issue you reported is that the button is not disabled when the command is disabled. In other words – disabling the command should also disable the button? |
Do not worry. |
There is a PR for this but it's blocked by CLA. |
Fixed (highlight): The remove highlight button now also gets disabled along with the main highlight command. Closes #9174.
📝 Provide detailed reproduction steps (if any)
document.querySelectorAll( '.ck-editor__editable' )[ 2 ].ckeditorInstance.commands.get( 'highlight' ).forceDisabled( 'someId' )
.✔️ Expected result
On disable Highlight plugin buttons in toolbar should become inactive.
❌ Actual result
“Remove highlight” button is still active.
📃 Other details
Possible solution:
The text was updated successfully, but these errors were encountered: