var attrName = this.att,\r
value = this.getValue();\r
\r
+ // Broadcast Lang Dir change\r
+ if ( attrName == 'dir' )\r
+ {\r
+ var dir = element.getAttribute( attrName );\r
+ if ( dir != value && element.getParent() )\r
+ this._.dialog._.editor.fire( 'dirChanged', { node : element, dir : value || element.getDirection( 1 ) } );\r
+ }\r
+\r
if ( value )\r
element.setAttribute( attrName, value );\r
else\r
type : 'select',\r
label : lang.langDir,\r
'default' : '',\r
- style : 'width:110px',\r
+ style : 'width:100%',\r
items :\r
[\r
[ lang.notSet, '' ],\r
{\r
contents = [];\r
\r
- if ( tabConfig.id )\r
+ if ( tabConfig.styles )\r
{\r
contents.push(\r
{\r
label : lang.styles,\r
'default' : '',\r
\r
- onChange : function(){},\r
-\r
getStyle : function( name, defaultValue )\r
{\r
var match = this.getValue().match( new RegExp( name + '\\s*:\s*([^;]*)', 'i') );\r
styles += name + ': ' + value;\r
}\r
\r
- this.setValue( styles, true );\r
+ this.setValue( styles, 1 );\r
\r
},\r
\r