TinuMCE: update to 3.5.7, fixes #21173
git-svn-id: http://core.svn.wordpress.org/trunk@22550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<script type="text/javascript" src="../../tiny_mce.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript">
|
||||
function patchCallback(settings, key) {
|
||||
if (settings[key])
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Template for dialogs</title>
|
||||
<link rel="stylesheet" type="text/css" href="skins/clearlooks2/window.css?ver=356-20120818" />
|
||||
<link rel="stylesheet" type="text/css" href="skins/clearlooks2/window.css?ver=357-20121111" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#media_dlg.title}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="js/media.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/validate.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/editable_selects.js?ver=356-20120818"></script>
|
||||
<link href="css/media.css?ver=356-20120818" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="js/media.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/validate.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/editable_selects.js?ver=357-20121111"></script>
|
||||
<link href="css/media.css?ver=357-20121111" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body style="display: none" role="application">
|
||||
<form onsubmit="Media.insert();return false;" action="#">
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
paste_convert_headers_to_strong : false,
|
||||
paste_dialog_width : "450",
|
||||
paste_dialog_height : "400",
|
||||
paste_max_consecutive_linebreaks: 2,
|
||||
paste_text_use_dialog : false,
|
||||
paste_text_sticky : false,
|
||||
paste_text_sticky_default : false,
|
||||
|
@ -790,10 +791,23 @@
|
|||
[/<\/t[dh]>\s*<t[dh][^>]*>/gi, "\t"], // Table cells get tabs betweem them
|
||||
/<[a-z!\/?][^>]*>/gi, // Delete all remaining tags
|
||||
[/ /gi, " "], // Convert non-break spaces to regular spaces (remember, *plain text*)
|
||||
[/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi, "$1"],// Cool little RegExp deletes whitespace around linebreak chars.
|
||||
[/\n{3,}/g, "\n\n"] // Max. 2 consecutive linebreaks
|
||||
[/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi, "$1"] // Cool little RegExp deletes whitespace around linebreak chars.
|
||||
]);
|
||||
|
||||
var maxLinebreaks = Number(getParam(ed, "paste_max_consecutive_linebreaks"));
|
||||
if (maxLinebreaks > -1) {
|
||||
var maxLinebreaksRegex = new RegExp("\n{" + (maxLinebreaks + 1) + ",}", "g");
|
||||
var linebreakReplacement = "";
|
||||
|
||||
while (linebreakReplacement.length < maxLinebreaks) {
|
||||
linebreakReplacement += "\n";
|
||||
}
|
||||
|
||||
process([
|
||||
[maxLinebreaksRegex, linebreakReplacement] // Limit max consecutive linebreaks
|
||||
]);
|
||||
}
|
||||
|
||||
content = ed.dom.decode(tinymce.html.Entities.encodeRaw(content));
|
||||
|
||||
// Perform default or custom replacements
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#paste.paste_text_desc}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="js/pastetext.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="js/pastetext.js?ver=357-20121111"></script>
|
||||
</head>
|
||||
<body onresize="PasteTextDialog.resize();" style="display:none; overflow:hidden;">
|
||||
<form name="source" onsubmit="return PasteTextDialog.insert();" action="#">
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#paste.paste_word_desc}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="js/pasteword.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="js/pasteword.js?ver=357-20121111"></script>
|
||||
</head>
|
||||
<body onresize="PasteWordDialog.resize();" style="display:none; overflow:hidden;">
|
||||
<form name="source" onsubmit="return PasteWordDialog.insert();" action="#">
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title></title>
|
||||
|
||||
<link rel="stylesheet" href="css/editimage.css?ver=356-20120818" type="text/css" media="all" />
|
||||
<script type="text/javascript" src="js/editimage.min.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js?ver=356-20120818"></script>
|
||||
<link rel="stylesheet" href="css/editimage.css?ver=357-20121111" type="text/css" media="all" />
|
||||
<script type="text/javascript" src="js/editimage.min.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js?ver=357-20121111"></script>
|
||||
<base target="_self" />
|
||||
</head>
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advanced_dlg.about_title}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="js/about.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="js/about.js?ver=357-20121111"></script>
|
||||
</head>
|
||||
<body id="about" style="display: none">
|
||||
<div class="tabs">
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advanced_dlg.anchor_title}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="js/anchor.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="js/anchor.js?ver=357-20121111"></script>
|
||||
</head>
|
||||
<body style="display: none" role="application" aria-labelledby="app_title">
|
||||
<form onsubmit="AnchorDialog.update();return false;" action="#">
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advanced_dlg.charmap_title}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="js/charmap.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="js/charmap.js?ver=357-20121111"></script>
|
||||
</head>
|
||||
<body id="charmap" style="display:none" role="application">
|
||||
<table align="center" border="0" cellspacing="0" cellpadding="2" role="presentation">
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advanced_dlg.colorpicker_title}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="js/color_picker.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="js/color_picker.js?ver=357-20121111"></script>
|
||||
</head>
|
||||
<body id="colorpicker" style="display: none" role="application" aria-labelledby="app_label">
|
||||
<span class="mceVoiceLabel" id="app_label" style="display:none;">{#advanced_dlg.colorpicker_title}</span>
|
||||
|
|
|
@ -150,7 +150,7 @@
|
|||
|
||||
init : function(ed, url) {
|
||||
var t = this, s, v, o;
|
||||
|
||||
|
||||
t.editor = ed;
|
||||
t.url = url;
|
||||
t.onResolveName = new tinymce.util.Dispatcher(this);
|
||||
|
@ -167,7 +167,7 @@
|
|||
theme_advanced_buttons3 : "hr,removeformat,visualaid,|,sub,sup,|,charmap"
|
||||
}, s);
|
||||
}
|
||||
|
||||
|
||||
// Default settings
|
||||
t.settings = s = extend({
|
||||
theme_advanced_path : true,
|
||||
|
@ -678,7 +678,7 @@
|
|||
if (DOM.get(ed.id + '_path_row')) {
|
||||
Event.add(ed.id + '_tbl', 'mouseover', function(e) {
|
||||
var re;
|
||||
|
||||
|
||||
e = e.target;
|
||||
|
||||
if (e.nodeName == 'SPAN' && DOM.hasClass(e.parentNode, 'mceButton')) {
|
||||
|
@ -956,7 +956,7 @@
|
|||
a = s.theme_advanced_toolbar_align.toLowerCase();
|
||||
a = 'mce' + t._ufirst(a);
|
||||
|
||||
n = DOM.add(DOM.add(c, 'tr', {role: 'presentation'}), 'td', {'class' : 'mceToolbar ' + a, "role":"presentation"});
|
||||
n = DOM.add(DOM.add(c, 'tr', {role: 'toolbar'}), 'td', {'class' : 'mceToolbar ' + a, "role":"toolbar"});
|
||||
|
||||
// Create toolbar and add the controls
|
||||
for (i=1; (v = s['theme_advanced_buttons' + i]); i++) {
|
||||
|
@ -986,7 +986,7 @@
|
|||
var n, t = this, ed = t.editor, s = t.settings, r, mf, me, td;
|
||||
|
||||
n = DOM.add(tb, 'tr');
|
||||
n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'});
|
||||
n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'});
|
||||
n = DOM.add(n, 'div', {id : ed.id + '_path_row', 'role': 'group', 'aria-labelledby': ed.id + '_path_voice'});
|
||||
if (s.theme_advanced_path) {
|
||||
DOM.add(n, 'span', {id: ed.id + '_path_voice'}, ed.translate('advanced.path'));
|
||||
|
@ -994,7 +994,7 @@
|
|||
} else {
|
||||
DOM.add(n, 'span', {}, ' ');
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (s.theme_advanced_resizing) {
|
||||
DOM.add(td, 'a', {id : ed.id + '_resize', href : 'javascript:;', onclick : "return false;", 'class' : 'mceResize', tabIndex:"-1"});
|
||||
|
@ -1154,7 +1154,7 @@
|
|||
|
||||
if (!fn && n.style.fontFamily)
|
||||
fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase();
|
||||
|
||||
|
||||
if (!fc && n.style.color)
|
||||
fc = n.style.color;
|
||||
|
||||
|
@ -1185,7 +1185,7 @@
|
|||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if (s.theme_advanced_show_current_color) {
|
||||
function updateColor(controlId, color) {
|
||||
if (c = cm.get(controlId)) {
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advanced_dlg.image_title}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="js/image.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="js/image.js?ver=357-20121111"></script>
|
||||
</head>
|
||||
<body id="image" style="display: none">
|
||||
<form onsubmit="ImageDialog.update();return false;" action="#">
|
||||
|
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
@ -2,11 +2,11 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advanced_dlg.link_title}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../utils/validate.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="js/link.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="../../utils/validate.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="js/link.js?ver=357-20121111"></script>
|
||||
</head>
|
||||
<body id="link" style="display: none">
|
||||
<form onsubmit="LinkDialog.update();return false;" action="#">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advanced_dlg.accessibility_help}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript">tinyMCEPopup.requireLangPack();</script>
|
||||
</head>
|
||||
<body id="content">
|
||||
|
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 651 B |
|
@ -1,8 +1,8 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advanced_dlg.code_title}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="js/source_editor.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<script type="text/javascript" src="js/source_editor.js?ver=357-20121111"></script>
|
||||
</head>
|
||||
<body onresize="resizeInputs();" style="display:none; overflow:hidden;" spellcheck="false">
|
||||
<form name="source" onsubmit="saveContent();return false;" action="#">
|
||||
|
|
|
@ -14,7 +14,7 @@ header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
|
||||
<title><?php _e('Rich Editor Help'); ?></title>
|
||||
<script type="text/javascript" src="tiny_mce_popup.js?ver=356-20120818"></script>
|
||||
<script type="text/javascript" src="tiny_mce_popup.js?ver=357-20121111"></script>
|
||||
<?php
|
||||
wp_admin_css( 'wp-admin', true );
|
||||
?>
|
||||
|
|
|
@ -18,7 +18,7 @@ $wp_db_version = 22441;
|
|||
*
|
||||
* @global string $tinymce_version
|
||||
*/
|
||||
$tinymce_version = '356-22438';
|
||||
$tinymce_version = '357-20121111';
|
||||
|
||||
/**
|
||||
* Holds the required PHP version
|
||||
|
|