Skip to content
Snippets Groups Projects
Commit d2e8c253 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[#1100] Restore Tim's changes from r65 that were removed with the TinyMCE...

[#1100] Restore Tim's changes from r65 that were removed with the TinyMCE upgrade.  Also include UNL Readme file
parent 40dfc0e4
No related branches found
No related tags found
No related merge requests found
UNL Modifications to Core (Marked with "Start UNL Change"):
----------------
Both image.js files (in plugins/advimage and themes) have been modified to not autofill image width and height.
----------------
\ No newline at end of file
......@@ -314,8 +314,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;
......
......@@ -230,6 +230,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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment