Ticket #27909: 27909.2.patch
File 27909.2.patch, 1.7 KB (added by , 11 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/paste/plugin.js
208 208 * 2. Wait for the browser to fire a "paste" event and get the contents out of the paste bin. 209 209 * 3. Check if the paste was successful if true, process the HTML. 210 210 * (4). If the paste was unsuccessful use IE execCommand, Clipboard API, document.dataTransfer old WebKit API etc. 211 * 211 * 212 212 * @class tinymce.pasteplugin.Clipboard 213 213 * @private 214 214 */ … … 1036 1036 if (!href && !name) { 1037 1037 node.unwrap(); 1038 1038 } else { 1039 if (name && name.indexOf('Toc') !== 0) { 1039 // Remove all named anchors that isn't toc specific 1040 if (name && !/^_?(?:toc|edn|ftn)/i.test(name)) { 1040 1041 node.unwrap(); 1041 1042 continue; 1042 1043 } … … 1112 1113 */ 1113 1114 function removeWebKitFragments(html) { 1114 1115 html = Utils.filter(html, [ 1115 /^[\s\S]*<!--StartFragment-->|<!--EndFragment-->[\s\S]*$/g, // WebKit fragment 1116 /^[\s\S]*<body[^>]*>\s*<!--StartFragment-->|<!--EndFragment-->\s*<\/body[^>]*>[\s\S]*$/g, // WebKit fragment body 1117 /<!--StartFragment-->|<!--EndFragment-->/g, // Inner fragments (tables from excel on mac) 1116 1118 [/<span class="Apple-converted-space">\u00a0<\/span>/g, '\u00a0'], // WebKit 1117 1119 /<br>$/i // Traling BR elements 1118 1120 ]); … … 1344 1346 }); 1345 1347 1346 1348 expose(["tinymce/pasteplugin/Utils","tinymce/pasteplugin/Clipboard","tinymce/pasteplugin/WordFilter","tinymce/pasteplugin/Quirks","tinymce/pasteplugin/Plugin"]); 1347 })(this); 1348 No newline at end of file 1349 })(this);