Ticket #4609: 4609.patch

File 4609.patch, 970 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/htmldataprocessor/plugin.js

     
    209209        var protectStyleTagsRegex = /<(style)(?=[ >])[^>]*>[^<]*<\/\1>/gi;
    210210        var encodedTagsRegex = /<cke:encoded>([^<]*)<\/cke:encoded>/gi;
    211211        var protectElementNamesRegex = /(<\/?)((?:object|embed|param).*?>)/gi;
    212         var protectSelfClosingRegex = /<cke:param(.*?)\/>/gi;
     212        var protectSelfClosingRegex = /<cke:(param|embded)(.*?)[/]?>/gi;
    213213
    214214        function protectStyleTagsMatch( match )
    215215        {
     
    226226        }
    227227        function protectSelfClosingElements( html )
    228228        {
    229                 return html.replace( protectSelfClosingRegex, '<cke:param$1></cke:param>' );
     229                return html.replace( protectSelfClosingRegex, '<cke:$1$2></cke:$1>' );
    230230        }
    231231
    232232        function unprotectEncodedTagsMatch( match, encoded )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy