X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fdialogadvtab%2Fplugin.js;h=3642e5caf49cd560b646486dadbafc6bbb34ccef;hb=039a051ccf3901311661022a30afd60fc38130c9;hp=deed8fce6b5193a55e41a03b291742805e84f276;hpb=9873d66421922c7aef8be0f5d2ab51e547b19e66;p=ckeditor.git diff --git a/_source/plugins/dialogadvtab/plugin.js b/_source/plugins/dialogadvtab/plugin.js index deed8fc..3642e5c 100644 --- a/_source/plugins/dialogadvtab/plugin.js +++ b/_source/plugins/dialogadvtab/plugin.js @@ -36,6 +36,14 @@ function commitAdvParams() var attrName = this.att, value = this.getValue(); + // Broadcast Lang Dir change + if ( attrName == 'dir' ) + { + var dir = element.getAttribute( attrName, value ); + if ( dir != value && element.getParent() ) + this._.dialog._.editor.fire( 'dirChanged', element ); + } + if ( value ) element.setAttribute( attrName, value ); else @@ -98,7 +106,7 @@ CKEDITOR.plugins.add( 'dialogadvtab', type : 'select', label : lang.langDir, 'default' : '', - style : 'width:110px', + style : 'width:100%', items : [ [ lang.notSet, '' ], @@ -122,7 +130,7 @@ CKEDITOR.plugins.add( 'dialogadvtab', { contents = []; - if ( tabConfig.id ) + if ( tabConfig.styles ) { contents.push( { @@ -132,8 +140,6 @@ CKEDITOR.plugins.add( 'dialogadvtab', label : lang.styles, 'default' : '', - onChange : function(){}, - getStyle : function( name, defaultValue ) { var match = this.getValue().match( new RegExp( name + '\\s*:\s*([^;]*)', 'i') ); @@ -159,7 +165,7 @@ CKEDITOR.plugins.add( 'dialogadvtab', styles += name + ': ' + value; } - this.setValue( styles, true ); + this.setValue( styles, 1 ); },