Ticket #2966: 2966.patch
File 2966.patch, 911 bytes (added by , 15 years ago) |
---|
-
_source/plugins/image/dialogs/image.js
1143 1143 var height = element.getAttribute( 'height' ); 1144 1144 width = element.getAttribute( 'width' ); 1145 1145 1146 if ( this.attributesInStyle .height )1146 if ( this.attributesInStyle && this.attributesInStyle.height ) 1147 1147 { 1148 1148 if ( height && height != '' ) 1149 1149 { … … 1155 1155 else 1156 1156 element.removeStyle( 'height' ); 1157 1157 } 1158 if ( this.attributesInStyle .width )1158 if ( this.attributesInStyle && this.attributesInStyle.width ) 1159 1159 { 1160 1160 if ( width && width != '' ) 1161 1161 if ( width.match( regexGetSize )[2] == '%' ) // % is allowed