Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nick Barry
TinyMCE
Commits
5eae2ecc
Commit
5eae2ecc
authored
Apr 18, 2013
by
Eric Rasmussen
Browse files
[gh-3] Add image height/width autofill changes
Were wiped out in
20952794
parent
20952794
Changes
3
Hide whitespace changes
Inline
Side-by-side
README-UNL.txt
View file @
5eae2ecc
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
Both image.js files (in plugins/advimage/js and themes/advanced/js) have been modified to not autofill image width and height.
----------------
plugins/advimage/js/image.js
View file @
5eae2ecc
...
...
@@ -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
;
...
...
themes/advanced/js/image.js
View file @
5eae2ecc
...
...
@@ -232,6 +232,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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment