TinyMCE: update the 'paste' plugin to the latest dev. version. Included changes: 1b7c41cd7b
and 7998b8025d
. See #27909, for trunk.
Built from https://develop.svn.wordpress.org/trunk@28192 git-svn-id: http://core.svn.wordpress.org/trunk@28022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d6e03df3c9
commit
5de05f97dd
|
@ -1036,7 +1036,8 @@ define("tinymce/pasteplugin/WordFilter", [
|
|||
if (!href && !name) {
|
||||
node.unwrap();
|
||||
} else {
|
||||
if (name && name.indexOf('Toc') !== 0) {
|
||||
// Remove all named anchors that isn't toc specific
|
||||
if (name && !/^_?toc/i.test(name)) {
|
||||
node.unwrap();
|
||||
continue;
|
||||
}
|
||||
|
@ -1112,7 +1113,8 @@ define("tinymce/pasteplugin/Quirks", [
|
|||
*/
|
||||
function removeWebKitFragments(html) {
|
||||
html = Utils.filter(html, [
|
||||
/^[\s\S]*<!--StartFragment-->|<!--EndFragment-->[\s\S]*$/g, // WebKit fragment
|
||||
/^[\s\S]*<body[^>]*>\s*<!--StartFragment-->|<!--EndFragment-->\s*<\/body[^>]*>[\s\S]*$/g, // WebKit fragment body
|
||||
/<!--StartFragment-->|<!--EndFragment-->/g, // Inner fragments (tables from excel on mac)
|
||||
[/<span class="Apple-converted-space">\u00a0<\/span>/g, '\u00a0'], // WebKit
|
||||
/<br>$/i // Traling BR elements
|
||||
]);
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue