Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.0.2
[ckeditor.git]
/
_source
/
plugins
/
table
/
dialogs
/
table.js
diff --git
a/_source/plugins/table/dialogs/table.js
b/_source/plugins/table/dialogs/table.js
index
461e36e
..
6a082d2
100644
(file)
--- a/
_source/plugins/table/dialogs/table.js
+++ b/
_source/plugins/table/dialogs/table.js
@@
-174,16
+174,19
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
// Set the width and height.
\r
var styles = [];
\r
if ( info.txtHeight )
\r
// Set the width and height.
\r
var styles = [];
\r
if ( info.txtHeight )
\r
- styles.push( 'height:' + info.txtHeight + 'px' );
\r
+ table.setStyle( 'height', CKEDITOR.tools.cssLength( info.txtHeight ) );
\r
+ else
\r
+ table.removeStyle( 'height' );
\r
+
\r
if ( info.txtWidth )
\r
{
\r
var type = info.cmbWidthType || 'pixels';
\r
if ( info.txtWidth )
\r
{
\r
var type = info.cmbWidthType || 'pixels';
\r
- styles.push( 'width:' + info.txtWidth + ( type == 'pixels' ? 'px' : '%' ) );
\r
+ table.setStyle( 'width', info.txtWidth + ( type == 'pixels' ? 'px' : '%' ) );
\r
}
\r
}
\r
- styles = styles.join( ';' );
\r
- if ( styles )
\r
- table.$.style.cssText = styles;
\r
else
\r
else
\r
+ table.removeStyle( 'width' );
\r
+
\r
+ if( !table.getAttribute( 'style' ) )
\r
table.removeAttribute( 'style' );
\r
}
\r
\r
table.removeAttribute( 'style' );
\r
}
\r
\r