X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fdialogadvtab%2Fplugin.js;h=5feec9c233be72ff864fcce67f9c85cadaf75770;hb=refs%2Ftags%2Fv3.4.1;hp=434911c4dc34f09488959eb4d900465a29c255a4;hpb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;p=ckeditor.git diff --git a/_source/plugins/dialogadvtab/plugin.js b/_source/plugins/dialogadvtab/plugin.js index 434911c..5feec9c 100644 --- a/_source/plugins/dialogadvtab/plugin.js +++ b/_source/plugins/dialogadvtab/plugin.js @@ -43,8 +43,6 @@ function commitAdvParams() } } -var isUpdating; - CKEDITOR.plugins.add( 'dialogadvtab', { /** @@ -62,8 +60,8 @@ CKEDITOR.plugins.add( 'dialogadvtab', var result = { id : 'advanced', - label : lang.advanced, - title : lang.advanced, + label : lang.advancedTab, + title : lang.advancedTab, elements : [ { @@ -100,7 +98,7 @@ CKEDITOR.plugins.add( 'dialogadvtab', type : 'select', label : lang.langDir, 'default' : '', - style : 'width:110px', + style : 'width:100%', items : [ [ lang.notSet, '' ], @@ -124,7 +122,7 @@ CKEDITOR.plugins.add( 'dialogadvtab', { contents = []; - if ( tabConfig.id ) + if ( tabConfig.styles ) { contents.push( { @@ -144,12 +142,6 @@ CKEDITOR.plugins.add( 'dialogadvtab', updateStyle : function( name, value ) { - if ( isUpdating ) - return; - - // Flag to avoid recursion. - isUpdating = 1; - var styles = this.getValue(); // Remove the current value. @@ -167,9 +159,8 @@ CKEDITOR.plugins.add( 'dialogadvtab', styles += name + ': ' + value; } - this.setValue( styles ); + this.setValue( styles, true ); - isUpdating = 0; }, setup : setupAdvParams,