Update TinyMCE to the current development version, 4.0.21.1. Fixes #27744
Built from https://develop.svn.wordpress.org/trunk@28066 git-svn-id: http://core.svn.wordpress.org/trunk@27898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
58ca03f8ea
commit
c631d144f1
@ -1,4 +1,4 @@
|
|||||||
// 4.0.21 (2014-04-01)
|
// 4.0.21.1 (2014-04-09)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compiled inline version. (Library mode)
|
* Compiled inline version. (Library mode)
|
||||||
@ -7997,12 +7997,21 @@ define("tinymce/AddOnManager", [
|
|||||||
* @param {String} languages Optional comma or space separated list of languages to check if it matches the name.
|
* @param {String} languages Optional comma or space separated list of languages to check if it matches the name.
|
||||||
*/
|
*/
|
||||||
requireLangPack: function(name, languages) {
|
requireLangPack: function(name, languages) {
|
||||||
if (AddOnManager.language && AddOnManager.languageLoad !== false) {
|
var language = AddOnManager.language;
|
||||||
if (languages && new RegExp('([, ]|\\b)' + AddOnManager.language + '([, ]|\\b)').test(languages) === false) {
|
|
||||||
|
if (language && AddOnManager.languageLoad !== false) {
|
||||||
|
if (languages) {
|
||||||
|
languages = ',' + languages + ',';
|
||||||
|
|
||||||
|
// Load short form sv.js or long form sv_SE.js
|
||||||
|
if (languages.indexOf(',' + language.substr(0, 2) + ',') != -1) {
|
||||||
|
language = language.substr(0, 2);
|
||||||
|
} else if (languages.indexOf(',' + language + ',') == -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ScriptLoader.ScriptLoader.add(this.urls[name] + '/langs/' + AddOnManager.language + '.js');
|
ScriptLoader.ScriptLoader.add(this.urls[name] + '/langs/' + language + '.js');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -17165,12 +17174,12 @@ define("tinymce/UndoManager", [
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (editor.fire('BeforeAddUndo', {level: level, originalEvent: event}).isDefaultPrevented()) {
|
lastLevel = data[index];
|
||||||
|
if (editor.fire('BeforeAddUndo', {level: level, lastLevel: lastLevel, originalEvent: event}).isDefaultPrevented()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add undo level if needed
|
// Add undo level if needed
|
||||||
lastLevel = data[index];
|
|
||||||
if (lastLevel && lastLevel.content == level.content) {
|
if (lastLevel && lastLevel.content == level.content) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -28788,7 +28797,7 @@ define("tinymce/EditorManager", [
|
|||||||
* @property minorVersion
|
* @property minorVersion
|
||||||
* @type String
|
* @type String
|
||||||
*/
|
*/
|
||||||
minorVersion : '0.21',
|
minorVersion : '0.21.1',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Release date of TinyMCE build.
|
* Release date of TinyMCE build.
|
||||||
@ -28796,7 +28805,7 @@ define("tinymce/EditorManager", [
|
|||||||
* @property releaseDate
|
* @property releaseDate
|
||||||
* @type String
|
* @type String
|
||||||
*/
|
*/
|
||||||
releaseDate: '2014-04-01',
|
releaseDate: '2014-04-09',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Collection of editor instances.
|
* Collection of editor instances.
|
||||||
|
10
wp-includes/js/tinymce/tinymce.min.js
vendored
10
wp-includes/js/tinymce/tinymce.min.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -18,7 +18,7 @@ $wp_db_version = 27916;
|
|||||||
*
|
*
|
||||||
* @global string $tinymce_version
|
* @global string $tinymce_version
|
||||||
*/
|
*/
|
||||||
$tinymce_version = '4021-20140407';
|
$tinymce_version = '4021-20140410';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the required PHP version
|
* Holds the required PHP version
|
||||||
|
Loading…
Reference in New Issue
Block a user