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
68c4898a
Commit
68c4898a
authored
Mar 14, 2012
by
Timothy Steiner
Browse files
[#1100] Disable inserting width and height of an image by default.
parent
fcb34983
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/advimage/js/image.js
View file @
68c4898a
...
...
@@ -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
;
...
...
themes/advanced/js/image.js
View file @
68c4898a
...
...
@@ -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
;
...
...
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