Ticket #3484: diff.patch
File diff.patch, 813 bytes (added by , 14 years ago) |
---|
-
FCKeditorSkin.body.php
152 152 $fp['align'] = ''; 153 153 } 154 154 155 $style = ''; 156 155 157 $ret = "<img "; 156 158 157 159 if ($found) { … … 168 170 if (!empty($hp)) { 169 171 if (isset($hp['width'])) { 170 172 $ret .= "_fck_mw_width=\"".$hp['width']."\" "; 173 $style .= ' width: '.(int)$hp['width'].';'; 171 174 } 172 175 if (isset($hp['height'])) { 173 176 $ret .= "_fck_mw_height=\"".$hp['height']."\" "; 177 $style .= ' height: '.(int)$hp['height'].';'; 174 178 } 175 179 } 176 180 $class = ""; … … 215 219 $ret .= "class=\"$class\" "; 216 220 } 217 221 222 if (($style = trim( $style )) !== '') { 223 $ret .= "style=\"$style\" "; 224 } 225 218 226 $ret .= "/>"; 219 227 220 228 return $ret;