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 = { ...@@ -308,8 +308,13 @@ var ImageDialog = {
var f = document.forms[0]; var f = document.forms[0];
if (!st) { if (!st) {
f.elements.width.value = img.width; // Start UNL Change!
f.elements.height.value = img.height;
// 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; this.preloadImg = img;
......
...@@ -224,6 +224,11 @@ var ImageDialog = { ...@@ -224,6 +224,11 @@ var ImageDialog = {
updateImageData : function() { updateImageData : function() {
var f = document.forms[0], t = ImageDialog; 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 == "") if (f.width.value == "")
f.width.value = t.preloadImg.width; 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