Commit 68c4898a authored by Timothy Steiner's avatar Timothy Steiner
Browse files

[#1100] Disable inserting width and height of an image by default.

parent fcb34983
......@@ -308,8 +308,13 @@ var ImageDialog = {
var f = document.forms[0];
if (!st) {
f.elements.width.value = img.width;
f.elements.height.value = img.height;
// Start UNL Change!
// By default, we don't want width and height specified.
//f.elements.width.value = img.width;
//f.elements.height.value = img.height;
// End UNL Change!
}
this.preloadImg = img;
......
......@@ -224,6 +224,11 @@ var ImageDialog = {
updateImageData : function() {
var f = document.forms[0], t = ImageDialog;
// Start UNL Change!
// By default, we don't want width and height specified.
return;
// End UNL Change!
if (f.width.value == "")
f.width.value = t.preloadImg.width;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment