Ticket #3484: diff.patch

File diff.patch, 813 bytes (added by interjinn, 15 years ago)

Fixes bug.

  • FCKeditorSkin.body.php

     
    152152                        $fp['align'] = '';
    153153                }
    154154
     155                $style = '';
     156
    155157                $ret = "<img ";
    156158
    157159                if ($found) {
     
    168170                if (!empty($hp)) {
    169171                        if (isset($hp['width'])) {
    170172                                $ret .= "_fck_mw_width=\"".$hp['width']."\" ";
     173                                $style .= ' width: '.(int)$hp['width'].';';
    171174                        }
    172175                        if (isset($hp['height'])) {
    173176                                $ret .= "_fck_mw_height=\"".$hp['height']."\" ";
     177                                $style .= ' height: '.(int)$hp['height'].';';
    174178                        }
    175179                }
    176180                $class = "";
     
    215219                        $ret .= "class=\"$class\" ";
    216220                }
    217221
     222                if (($style = trim( $style )) !== '') {
     223                        $ret .= "style=\"$style\" ";
     224                }
     225
    218226                $ret .= "/>";
    219227
    220228                return $ret;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy