setState(CKEDITOR.TRISTATE_DISABLED) on 'mode' impossible for maximize plugin
editor.on( 'mode', function() {
if ( editor.mode == 'source' ) {
editor.getCommand('maximize').setState(CKEDITOR.TRISTATE_DISABLED);
}
});
Doesn't work as expected (I guess due to setState gymnastics going on in plugins/maximize/plugin.js) So this appears to make it impossible to disable the maximise plugin when switching to source view. It also reveals an inconsistency in CKEditor's API.
The above method works fine for 'newpage', 'preview', 'selectAll' but not maximize.
Change History (6)
Component: |
General →
UI : Toolbar
|
Milestone: |
→ CKEditor 3.4.2
|
Owner: |
set to Sa'ar Zac Elias
|
Status: |
confirmed →
review
|
Status: |
review →
review_passed
|
Resolution: |
→ fixed
|
Status: |
review_passed →
closed
|
Fixed with [5940].