Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Image size fix if url is written manually

  • Loading branch information...
commit f77b6706acfd0c70592955307b13beb8891d20f1 1 parent c6c43ae
julmis authored
Showing with 14 additions and 2 deletions.
  1. +14 −2 lib/editor/htmlarea.php
View
16 lib/editor/htmlarea.php
@@ -1513,8 +1513,20 @@ function (str, l1, l2, l3) {
case "f_align" : img.align = value; break;
case "f_vert" : img.vspace = parseInt(value || "0"); break;
case "f_horiz" : img.hspace = parseInt(value || "0"); break;
- case "f_width" : img.width = parseInt(value || "0"); break;
- case "f_height" : img.height = parseInt(value || "0"); break;
+ case "f_width" :
+ if(value != 0) {
+ img.width = parseInt(value);
+ } else {
+ break;
+ }
+ break;
+ case "f_height" :
+ if(value != 0) {
+ img.height = parseInt(value);
+ } else {
+ break;
+ }
+ break;
}
}
}, outparam);
Please sign in to comment.
Something went wrong with that request. Please try again.