Opened 8 years ago

Closed 8 years ago

#14685 closed Bug (invalid)

Restoring editor to the editable mode should respect command buttons state

Reported by: mdprw Owned by:
Priority: Normal Milestone:
Component: Core : Read-only Version:
Keywords: Cc:


Steps to reproduce

  1. Open any CKEditor full featured:
  1. Disable templates command button:
  1. Set editor to readOnly mode:
  1. Set editor to editable mode:

Expected result

Previously disabled command buttons should mantain their state

Actual result

The command button is enabled

Other details (browser, OS, CKEditor version, installed plugins)

OS: Windows 7 Browser: Firefox 46.0.1 CKEditor: 4.5.9

Change History (1)

comment:1 Changed 8 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.5.9

You could always use!/api/CKEDITOR.editor-event-readOnly event to customize this behaviour, and this is implementer part to maintain custom parts here. In general it's preferred to automatically maintain command status with!/api/CKEDITOR.commandDefinition-property-readOnly

Please also note that some buttons are disabled before and after setting read-only. They handle their state managing CKEDITOR.TRISTATE_DISABLED and CKEDITOR.TRISTATE_OFF. Please check the indent, link (unlink) or clipboard plugins.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy