X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fdialog%2Fplugin.js;fp=_source%2Fplugins%2Fdialog%2Fplugin.js;h=dcb566bb5c2570dcf30d06b089f5b358564af485;hb=4e70ea24db840898be8cc21c950363a52a2a6aba;hp=b0b125cdce3bc45d7aec32a364f6d061f81f0a01;hpb=1056598c95187351dc58f4991d331e2258d038b5;p=ckeditor.git diff --git a/_source/plugins/dialog/plugin.js b/_source/plugins/dialog/plugin.js index b0b125c..dcb566b 100644 --- a/_source/plugins/dialog/plugin.js +++ b/_source/plugins/dialog/plugin.js @@ -2241,6 +2241,9 @@ CKEDITOR.DIALOG_RESIZE_BOTH = 3; classes[ 'cke_dialog_ui_' + elementDefinition.type ] = 1; if ( elementDefinition.className ) classes[ elementDefinition.className ] = 1; + if ( elementDefinition.disabled ) + classes[ 'cke_disabled' ] = 1; + var attributeClasses = ( attributes['class'] && attributes['class'].split ) ? attributes['class'].split( ' ' ) : []; for ( i = 0 ; i < attributeClasses.length ; i++ ) { @@ -2725,7 +2728,7 @@ CKEDITOR.DIALOG_RESIZE_BOTH = 3; */ disable : function() { - var element = this.getInputElement(); + var element = this.getElement(); element.setAttribute( 'disabled', 'true' ); element.addClass( 'cke_disabled' ); }, @@ -2736,7 +2739,7 @@ CKEDITOR.DIALOG_RESIZE_BOTH = 3; */ enable : function() { - var element = this.getInputElement(); + var element = this.getElement(); element.removeAttribute( 'disabled' ); element.removeClass( 'cke_disabled' ); },