Ticket #261: fckeditor-escape.patch

File fckeditor-escape.patch, 818 bytes (added by archimedia, 12 years ago)

Moved from SF.

  • editor/dialog/fck_image/fck_image.js

    diff -bur fckeditor.orig/editor/dialog/fck_image/fck_image.js fckeditor/editor/dialog/fck_image/fck_image.js
    old new  
    268268        return true ;
    269269}
    270270
     271function EscapeURL( url )
     272{
     273        return url.replace (" ", "%20") ;
     274}
     275
    271276function UpdateImage( e, skipId )
    272277{
    273         e.src = GetE('txtUrl').value ;
    274         SetAttribute( e, "_fcksavedurl", GetE('txtUrl').value ) ;
     278        e.src = EscapeURL( GetE('txtUrl').value ) ;
     279        SetAttribute( e, "_fcksavedurl", EscapeURL (GetE('txtUrl').value) ) ;
    275280        SetAttribute( e, "alt"   , GetE('txtAlt').value ) ;
    276281        SetAttribute( e, "width" , GetE('txtWidth').value ) ;
    277282        SetAttribute( e, "height", GetE('txtHeight').value ) ;
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy