Changeset 210

Show
Ignore:
Timestamp:
2007-03-14 14:22:47 (3 years ago)
Author:
fredck
Message:

Fixed #209 : Links and images URLs will now be correctly preserved with Netscape 7.1.

Location:
FCKeditor/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fck.js

    r205 r210  
    266266        { 
    267267                // <A> href 
    268                 html = html.replace( FCKRegexLib.ProtectUrlsA   , '$1$4$2$3$5$2 _fcksavedurl=$2$3$5$2' ) ; 
     268                html = html.replace( FCKRegexLib.ProtectUrlsA   , '$& _fcksavedurl=$1' ) ; 
    269269 
    270270                // <IMG> src 
    271                 html = html.replace( FCKRegexLib.ProtectUrlsImg , '$1$4$2$3$5$2 _fcksavedurl=$2$3$5$2' ) ; 
     271                html = html.replace( FCKRegexLib.ProtectUrlsImg , '$& _fcksavedurl=$1' ) ; 
    272272 
    273273                return html ; 
  • FCKeditor/trunk/editor/_source/internals/fckregexlib.js

    r197 r210  
    7676// them. We have to do all in one, otherwhise we will have problems with URLs 
    7777// like "thumbnail.php?src=someimage.jpg" (SF-BUG 1554141). 
    78 ProtectUrlsImg  : /(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi , 
    79 ProtectUrlsA    : /(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi , 
     78ProtectUrlsImg  : /<img(?=\s).*?\ssrc=((?:("|').*?\2)|(?:[^"'][^ >]+))/gi , 
     79ProtectUrlsA    : /<a(?=\s).*?\shref=((?:("|').*?\2)|(?:[^"'][^ >]+))/gi , 
    8080 
    8181Html4DocType    : /HTML 4\.0 Transitional/i , 
  • FCKeditor/trunk/_whatsnew.html

    r208 r210  
    111111                        is set to a block tag (p or div), the desired block creation in now enforced, instead 
    112112                        of copying the current block (which is still the behavior of the simple enter).</li> 
     113                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/209">#209</a>] Links and 
     114                        images URLs will now be correctly preserved with Netscape 7.1.</li> 
    113115        </ul> 
    114116        <h3>