Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 5678)
+++ /CKEditor/trunk/CHANGES.html (revision 5679)
@@ -60,4 +60,5 @@
#5100 : It was possible to drag&drop some elements like context menu items or dropdown entries.
#5933 : Text color and background color panels don't have scrollbars anymore under office2003 and v2 skins.
+ #5943 : An error is no longer generated when using percent or pixel values in the image dialog.
Index: /CKEditor/trunk/_source/plugins/image/dialogs/image.js
===================================================================
--- /CKEditor/trunk/_source/plugins/image/dialogs/image.js (revision 5678)
+++ /CKEditor/trunk/_source/plugins/image/dialogs/image.js (revision 5679)
@@ -665,5 +665,5 @@
}
else
- element.setStyle( 'width', value + 'px');
+ element.setStyle( 'width', CKEDITOR.tools.cssLength( value ) );
}
else if ( type == CLEANUP )
@@ -716,5 +716,5 @@
}
else
- element.setStyle( 'height', value + 'px' );
+ element.setStyle( 'height', CKEDITOR.tools.cssLength( value ) );
}
else if ( type == CLEANUP )