divarea editor, when setReadOnly is triggered by mouseclick event paste buttons has wrong state #2775
Labels
plugin:clipboard
The plugin which probably causes the issue.
status:confirmed
An issue confirmed by the development team.
target:minor
Any docs related issue that can be merged into a master or major branch.
type:bug
A bug.
Milestone
Type of report
Bug
Provide detailed reproduction steps (if any)
Expected result
Paste buttons are disabled.
Actual result
Paste buttons are not disabled
This happens because
mouseup
listener on editor.document doesn't take in count editor being read only:/~https://github.com/ckeditor/ckeditor-dev/blob/d931efee7bb8875e489c172fa3e20de8e8209aef/plugins/clipboard/plugin.js#L742
/~https://github.com/ckeditor/ckeditor-dev/blob/d931efee7bb8875e489c172fa3e20de8e8209aef/plugins/clipboard/plugin.js#L1212-L1222
Other details
This might affect inline editor, however focusing editor makes editor update buttons state, hence it is not visible when toolbar is hidden.
The text was updated successfully, but these errors were encountered: