Permalink
Browse files

Image size fix if url is written manually

  • Loading branch information...
1 parent c6c43ae commit f77b6706acfd0c70592955307b13beb8891d20f1 julmis committed Mar 1, 2004
Showing with 14 additions and 2 deletions.
  1. +14 −2 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);

0 comments on commit f77b670

Please sign in to comment.