Ticket #7269: fix_webkit_anchor_links_in_footnotes.patch

File fix_webkit_anchor_links_in_footnotes.patch, 709 bytes (added by Tomas, 13 years ago)

patch for _source\plugins\pastefromword\filter\default.js

  • default.js

     
    920920                                        'a' : function( element )
    921921                                        {
    922922                                                var attrs = element.attributes;
    923                                                 if ( attrs && !attrs.href && attrs.name )
     923                                                if ( attrs && !attrs.href && attrs.name ) {
    924924                                                        delete element.name;
     925                        }
     926                        else if (CKEDITOR.env.webkit && attrs.href && attrs.href.match(/file:\/\/\/[\S]+#/i)) {
     927                            attrs.href = attrs.href.replace(/file:\/\/\/[^#]+/i,'');
     928                        }
    925929                                        },
    926930                                        'cke:listbullet' : function( element )
    927931                                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy