X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fdialogadvtab%2Fplugin.js;h=63222d20ff715edb599804417bf227ce56bf0a40;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=5feec9c233be72ff864fcce67f9c85cadaf75770;hpb=c9fdde67e6384bd5a66adc2b3bba5c4ce9db56c7;p=ckeditor.git diff --git a/_source/plugins/dialogadvtab/plugin.js b/_source/plugins/dialogadvtab/plugin.js index 5feec9c..63222d2 100644 --- a/_source/plugins/dialogadvtab/plugin.js +++ b/_source/plugins/dialogadvtab/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -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 ); + if ( dir != value && element.getParent() ) + this._.dialog._.editor.fire( 'dirChanged', { node : element, dir : value || element.getDirection( 1 ) } ); + } + if ( value ) element.setAttribute( attrName, value ); else @@ -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 ); },