TinyMCE: update to version 4.9.6. Changelog: https://github.com/tinymce/tinymce/blob/4.x/changelog.txt. Includes fix for the Permission denied to access property "nodeType"
error.
Fixes #47437. git-svn-id: https://develop.svn.wordpress.org/trunk@46173 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3d40bbeef5
commit
684f30fd7b
@ -67,8 +67,9 @@ var image = (function (domGlobals) {
|
|||||||
|
|
||||||
var path = function (parts, scope) {
|
var path = function (parts, scope) {
|
||||||
var o = scope !== undefined && scope !== null ? scope : Global;
|
var o = scope !== undefined && scope !== null ? scope : Global;
|
||||||
for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i)
|
for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i) {
|
||||||
o = o[parts[i]];
|
o = o[parts[i]];
|
||||||
|
}
|
||||||
return o;
|
return o;
|
||||||
};
|
};
|
||||||
var resolve = function (p, scope) {
|
var resolve = function (p, scope) {
|
||||||
@ -81,8 +82,9 @@ var image = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
var getOrDie = function (name, scope) {
|
var getOrDie = function (name, scope) {
|
||||||
var actual = unsafe(name, scope);
|
var actual = unsafe(name, scope);
|
||||||
if (actual === undefined || actual === null)
|
if (actual === undefined || actual === null) {
|
||||||
throw name + ' not available on this browser';
|
throw new Error(name + ' not available on this browser');
|
||||||
|
}
|
||||||
return actual;
|
return actual;
|
||||||
};
|
};
|
||||||
var Global$1 = { getOrDie: getOrDie };
|
var Global$1 = { getOrDie: getOrDie };
|
||||||
@ -255,17 +257,20 @@ var image = (function (domGlobals) {
|
|||||||
var baseMerge = function (merger) {
|
var baseMerge = function (merger) {
|
||||||
return function () {
|
return function () {
|
||||||
var objects = new Array(arguments.length);
|
var objects = new Array(arguments.length);
|
||||||
for (var i = 0; i < objects.length; i++)
|
for (var i = 0; i < objects.length; i++) {
|
||||||
objects[i] = arguments[i];
|
objects[i] = arguments[i];
|
||||||
if (objects.length === 0)
|
}
|
||||||
|
if (objects.length === 0) {
|
||||||
throw new Error('Can\'t merge zero objects');
|
throw new Error('Can\'t merge zero objects');
|
||||||
|
}
|
||||||
var ret = {};
|
var ret = {};
|
||||||
for (var j = 0; j < objects.length; j++) {
|
for (var j = 0; j < objects.length; j++) {
|
||||||
var curObject = objects[j];
|
var curObject = objects[j];
|
||||||
for (var key in curObject)
|
for (var key in curObject) {
|
||||||
if (hasOwnProperty.call(curObject, key)) {
|
if (hasOwnProperty.call(curObject, key)) {
|
||||||
ret[key] = merger(ret[key], curObject[key]);
|
ret[key] = merger(ret[key], curObject[key]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
File diff suppressed because one or more lines are too long
@ -275,8 +275,9 @@ var lists = (function (domGlobals) {
|
|||||||
},
|
},
|
||||||
toString: constant('none()')
|
toString: constant('none()')
|
||||||
};
|
};
|
||||||
if (Object.freeze)
|
if (Object.freeze) {
|
||||||
Object.freeze(me);
|
Object.freeze(me);
|
||||||
|
}
|
||||||
return me;
|
return me;
|
||||||
}();
|
}();
|
||||||
var some = function (a) {
|
var some = function (a) {
|
||||||
@ -351,13 +352,16 @@ var lists = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var typeOf = function (x) {
|
var typeOf = function (x) {
|
||||||
if (x === null)
|
if (x === null) {
|
||||||
return 'null';
|
return 'null';
|
||||||
|
}
|
||||||
var t = typeof x;
|
var t = typeof x;
|
||||||
if (t === 'object' && Array.prototype.isPrototypeOf(x))
|
if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
|
||||||
return 'array';
|
return 'array';
|
||||||
if (t === 'object' && String.prototype.isPrototypeOf(x))
|
}
|
||||||
|
if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
|
||||||
return 'string';
|
return 'string';
|
||||||
|
}
|
||||||
return t;
|
return t;
|
||||||
};
|
};
|
||||||
var isType = function (type) {
|
var isType = function (type) {
|
||||||
@ -366,10 +370,12 @@ var lists = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
var isString = isType('string');
|
var isString = isType('string');
|
||||||
|
var isArray = isType('array');
|
||||||
var isBoolean = isType('boolean');
|
var isBoolean = isType('boolean');
|
||||||
var isFunction = isType('function');
|
var isFunction = isType('function');
|
||||||
var isNumber = isType('number');
|
var isNumber = isType('number');
|
||||||
|
|
||||||
|
var slice = Array.prototype.slice;
|
||||||
var map = function (xs, f) {
|
var map = function (xs, f) {
|
||||||
var len = xs.length;
|
var len = xs.length;
|
||||||
var r = new Array(len);
|
var r = new Array(len);
|
||||||
@ -437,8 +443,9 @@ var lists = (function (domGlobals) {
|
|||||||
var flatten = function (xs) {
|
var flatten = function (xs) {
|
||||||
var r = [];
|
var r = [];
|
||||||
for (var i = 0, len = xs.length; i < len; ++i) {
|
for (var i = 0, len = xs.length; i < len; ++i) {
|
||||||
if (!Array.prototype.isPrototypeOf(xs[i]))
|
if (!isArray(xs[i])) {
|
||||||
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
||||||
|
}
|
||||||
push.apply(r, xs[i]);
|
push.apply(r, xs[i]);
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
@ -447,7 +454,6 @@ var lists = (function (domGlobals) {
|
|||||||
var output = map(xs, f);
|
var output = map(xs, f);
|
||||||
return flatten(output);
|
return flatten(output);
|
||||||
};
|
};
|
||||||
var slice = Array.prototype.slice;
|
|
||||||
var reverse = function (xs) {
|
var reverse = function (xs) {
|
||||||
var r = slice.call(xs, 0);
|
var r = slice.call(xs, 0);
|
||||||
r.reverse();
|
r.reverse();
|
||||||
@ -467,8 +473,9 @@ var lists = (function (domGlobals) {
|
|||||||
|
|
||||||
var path = function (parts, scope) {
|
var path = function (parts, scope) {
|
||||||
var o = scope !== undefined && scope !== null ? scope : Global;
|
var o = scope !== undefined && scope !== null ? scope : Global;
|
||||||
for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i)
|
for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i) {
|
||||||
o = o[parts[i]];
|
o = o[parts[i]];
|
||||||
|
}
|
||||||
return o;
|
return o;
|
||||||
};
|
};
|
||||||
var resolve = function (p, scope) {
|
var resolve = function (p, scope) {
|
||||||
@ -481,8 +488,9 @@ var lists = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
var getOrDie = function (name, scope) {
|
var getOrDie = function (name, scope) {
|
||||||
var actual = unsafe(name, scope);
|
var actual = unsafe(name, scope);
|
||||||
if (actual === undefined || actual === null)
|
if (actual === undefined || actual === null) {
|
||||||
throw name + ' not available on this browser';
|
throw new Error(name + ' not available on this browser');
|
||||||
|
}
|
||||||
return actual;
|
return actual;
|
||||||
};
|
};
|
||||||
var Global$1 = { getOrDie: getOrDie };
|
var Global$1 = { getOrDie: getOrDie };
|
||||||
@ -703,18 +711,20 @@ var lists = (function (domGlobals) {
|
|||||||
var firstMatch = function (regexes, s) {
|
var firstMatch = function (regexes, s) {
|
||||||
for (var i = 0; i < regexes.length; i++) {
|
for (var i = 0; i < regexes.length; i++) {
|
||||||
var x = regexes[i];
|
var x = regexes[i];
|
||||||
if (x.test(s))
|
if (x.test(s)) {
|
||||||
return x;
|
return x;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
var find$1 = function (regexes, agent) {
|
var find$1 = function (regexes, agent) {
|
||||||
var r = firstMatch(regexes, agent);
|
var r = firstMatch(regexes, agent);
|
||||||
if (!r)
|
if (!r) {
|
||||||
return {
|
return {
|
||||||
major: 0,
|
major: 0,
|
||||||
minor: 0
|
minor: 0
|
||||||
};
|
};
|
||||||
|
}
|
||||||
var group = function (i) {
|
var group = function (i) {
|
||||||
return Number(agent.replace(r, '$' + i));
|
return Number(agent.replace(r, '$' + i));
|
||||||
};
|
};
|
||||||
@ -722,8 +732,9 @@ var lists = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
var detect = function (versionRegexes, agent) {
|
var detect = function (versionRegexes, agent) {
|
||||||
var cleanedAgent = String(agent).toLowerCase();
|
var cleanedAgent = String(agent).toLowerCase();
|
||||||
if (versionRegexes.length === 0)
|
if (versionRegexes.length === 0) {
|
||||||
return unknown();
|
return unknown();
|
||||||
|
}
|
||||||
return find$1(versionRegexes, cleanedAgent);
|
return find$1(versionRegexes, cleanedAgent);
|
||||||
};
|
};
|
||||||
var unknown = function () {
|
var unknown = function () {
|
||||||
@ -893,8 +904,7 @@ var lists = (function (domGlobals) {
|
|||||||
name: 'Edge',
|
name: 'Edge',
|
||||||
versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
|
versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
|
||||||
search: function (uastring) {
|
search: function (uastring) {
|
||||||
var monstrosity = contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
|
return contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
|
||||||
return monstrosity;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1024,19 +1034,22 @@ var lists = (function (domGlobals) {
|
|||||||
|
|
||||||
var ELEMENT$1 = ELEMENT;
|
var ELEMENT$1 = ELEMENT;
|
||||||
var is = function (element, selector) {
|
var is = function (element, selector) {
|
||||||
var elem = element.dom();
|
var dom = element.dom();
|
||||||
if (elem.nodeType !== ELEMENT$1) {
|
if (dom.nodeType !== ELEMENT$1) {
|
||||||
return false;
|
return false;
|
||||||
} else if (elem.matches !== undefined) {
|
|
||||||
return elem.matches(selector);
|
|
||||||
} else if (elem.msMatchesSelector !== undefined) {
|
|
||||||
return elem.msMatchesSelector(selector);
|
|
||||||
} else if (elem.webkitMatchesSelector !== undefined) {
|
|
||||||
return elem.webkitMatchesSelector(selector);
|
|
||||||
} else if (elem.mozMatchesSelector !== undefined) {
|
|
||||||
return elem.mozMatchesSelector(selector);
|
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Browser lacks native selectors');
|
var elem = dom;
|
||||||
|
if (elem.matches !== undefined) {
|
||||||
|
return elem.matches(selector);
|
||||||
|
} else if (elem.msMatchesSelector !== undefined) {
|
||||||
|
return elem.msMatchesSelector(selector);
|
||||||
|
} else if (elem.webkitMatchesSelector !== undefined) {
|
||||||
|
return elem.webkitMatchesSelector(selector);
|
||||||
|
} else if (elem.mozMatchesSelector !== undefined) {
|
||||||
|
return elem.mozMatchesSelector(selector);
|
||||||
|
} else {
|
||||||
|
throw new Error('Browser lacks native selectors');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1056,12 +1069,10 @@ var lists = (function (domGlobals) {
|
|||||||
var is$1 = is;
|
var is$1 = is;
|
||||||
|
|
||||||
var parent = function (element) {
|
var parent = function (element) {
|
||||||
var dom = element.dom();
|
return Option.from(element.dom().parentNode).map(Element.fromDom);
|
||||||
return Option.from(dom.parentNode).map(Element.fromDom);
|
|
||||||
};
|
};
|
||||||
var children = function (element) {
|
var children = function (element) {
|
||||||
var dom = element.dom();
|
return map(element.dom().childNodes, Element.fromDom);
|
||||||
return map(dom.childNodes, Element.fromDom);
|
|
||||||
};
|
};
|
||||||
var child = function (element, index) {
|
var child = function (element, index) {
|
||||||
var cs = element.dom().childNodes;
|
var cs = element.dom().childNodes;
|
||||||
@ -1107,6 +1118,15 @@ var lists = (function (domGlobals) {
|
|||||||
var r = element.dom().nodeName;
|
var r = element.dom().nodeName;
|
||||||
return r.toLowerCase();
|
return r.toLowerCase();
|
||||||
};
|
};
|
||||||
|
var type = function (element) {
|
||||||
|
return element.dom().nodeType;
|
||||||
|
};
|
||||||
|
var isType$1 = function (t) {
|
||||||
|
return function (element) {
|
||||||
|
return type(element) === t;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
var isElement = isType$1(ELEMENT);
|
||||||
|
|
||||||
var rawSet = function (dom, key, value) {
|
var rawSet = function (dom, key, value) {
|
||||||
if (isString(value) || isBoolean(value) || isNumber(value)) {
|
if (isString(value) || isBoolean(value) || isNumber(value)) {
|
||||||
@ -1130,7 +1150,7 @@ var lists = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var isSupported = function (dom) {
|
var isSupported = function (dom) {
|
||||||
return dom.style !== undefined;
|
return dom.style !== undefined && isFunction(dom.style.getPropertyValue);
|
||||||
};
|
};
|
||||||
|
|
||||||
var internalSet = function (dom, property, value) {
|
var internalSet = function (dom, property, value) {
|
||||||
@ -1270,7 +1290,7 @@ var lists = (function (domGlobals) {
|
|||||||
return map(content, deep);
|
return map(content, deep);
|
||||||
};
|
};
|
||||||
var createEntry = function (li, depth, isSelected) {
|
var createEntry = function (li, depth, isSelected) {
|
||||||
return parent(li).map(function (list) {
|
return parent(li).filter(isElement).map(function (list) {
|
||||||
return {
|
return {
|
||||||
depth: depth,
|
depth: depth,
|
||||||
isSelected: isSelected,
|
isSelected: isSelected,
|
||||||
@ -1302,17 +1322,20 @@ var lists = (function (domGlobals) {
|
|||||||
var baseMerge = function (merger) {
|
var baseMerge = function (merger) {
|
||||||
return function () {
|
return function () {
|
||||||
var objects = new Array(arguments.length);
|
var objects = new Array(arguments.length);
|
||||||
for (var i = 0; i < objects.length; i++)
|
for (var i = 0; i < objects.length; i++) {
|
||||||
objects[i] = arguments[i];
|
objects[i] = arguments[i];
|
||||||
if (objects.length === 0)
|
}
|
||||||
|
if (objects.length === 0) {
|
||||||
throw new Error('Can\'t merge zero objects');
|
throw new Error('Can\'t merge zero objects');
|
||||||
|
}
|
||||||
var ret = {};
|
var ret = {};
|
||||||
for (var j = 0; j < objects.length; j++) {
|
for (var j = 0; j < objects.length; j++) {
|
||||||
var curObject = objects[j];
|
var curObject = objects[j];
|
||||||
for (var key in curObject)
|
for (var key in curObject) {
|
||||||
if (hasOwnProperty.call(curObject, key)) {
|
if (hasOwnProperty.call(curObject, key)) {
|
||||||
ret[key] = merger(ret[key], curObject[key]);
|
ret[key] = merger(ret[key], curObject[key]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
@ -1529,17 +1552,17 @@ var lists = (function (domGlobals) {
|
|||||||
var SplitList = { splitList: splitList };
|
var SplitList = { splitList: splitList };
|
||||||
|
|
||||||
var outdentDlItem = function (editor, item) {
|
var outdentDlItem = function (editor, item) {
|
||||||
if (is$1(item, 'DD')) {
|
if (is$1(item, 'dd')) {
|
||||||
mutate(item, 'DT');
|
mutate(item, 'dt');
|
||||||
} else if (is$1(item, 'DT')) {
|
} else if (is$1(item, 'dt')) {
|
||||||
parent(item).each(function (dl) {
|
parent(item).each(function (dl) {
|
||||||
return SplitList.splitList(editor, dl.dom(), item.dom());
|
return SplitList.splitList(editor, dl.dom(), item.dom());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var indentDlItem = function (item) {
|
var indentDlItem = function (item) {
|
||||||
if (is$1(item, 'DT')) {
|
if (is$1(item, 'dt')) {
|
||||||
mutate(item, 'DD');
|
mutate(item, 'dd');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var dlIndentation = function (editor, indentation, dlItems) {
|
var dlIndentation = function (editor, indentation, dlItems) {
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -551,10 +551,6 @@ var inlite = (function (domGlobals) {
|
|||||||
var Render = { renderUI: renderUI };
|
var Render = { renderUI: renderUI };
|
||||||
|
|
||||||
var noop = function () {
|
var noop = function () {
|
||||||
var args = [];
|
|
||||||
for (var _i = 0; _i < arguments.length; _i++) {
|
|
||||||
args[_i] = arguments[_i];
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
var constant = function (value) {
|
var constant = function (value) {
|
||||||
return function () {
|
return function () {
|
||||||
@ -618,8 +614,9 @@ var inlite = (function (domGlobals) {
|
|||||||
},
|
},
|
||||||
toString: constant('none()')
|
toString: constant('none()')
|
||||||
};
|
};
|
||||||
if (Object.freeze)
|
if (Object.freeze) {
|
||||||
Object.freeze(me);
|
Object.freeze(me);
|
||||||
|
}
|
||||||
return me;
|
return me;
|
||||||
}();
|
}();
|
||||||
var some = function (a) {
|
var some = function (a) {
|
||||||
@ -694,13 +691,16 @@ var inlite = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var typeOf = function (x) {
|
var typeOf = function (x) {
|
||||||
if (x === null)
|
if (x === null) {
|
||||||
return 'null';
|
return 'null';
|
||||||
|
}
|
||||||
var t = typeof x;
|
var t = typeof x;
|
||||||
if (t === 'object' && Array.prototype.isPrototypeOf(x))
|
if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
|
||||||
return 'array';
|
return 'array';
|
||||||
if (t === 'object' && String.prototype.isPrototypeOf(x))
|
}
|
||||||
|
if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
|
||||||
return 'string';
|
return 'string';
|
||||||
|
}
|
||||||
return t;
|
return t;
|
||||||
};
|
};
|
||||||
var isType$1 = function (type) {
|
var isType$1 = function (type) {
|
||||||
@ -708,9 +708,11 @@ var inlite = (function (domGlobals) {
|
|||||||
return typeOf(value) === type;
|
return typeOf(value) === type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
var isArray$1 = isType$1('array');
|
||||||
var isFunction$1 = isType$1('function');
|
var isFunction$1 = isType$1('function');
|
||||||
var isNumber$1 = isType$1('number');
|
var isNumber$1 = isType$1('number');
|
||||||
|
|
||||||
|
var slice = Array.prototype.slice;
|
||||||
var rawIndexOf = function () {
|
var rawIndexOf = function () {
|
||||||
var pIndexOf = Array.prototype.indexOf;
|
var pIndexOf = Array.prototype.indexOf;
|
||||||
var fastIndex = function (xs, x) {
|
var fastIndex = function (xs, x) {
|
||||||
@ -789,13 +791,13 @@ var inlite = (function (domGlobals) {
|
|||||||
var flatten$1 = function (xs) {
|
var flatten$1 = function (xs) {
|
||||||
var r = [];
|
var r = [];
|
||||||
for (var i = 0, len = xs.length; i < len; ++i) {
|
for (var i = 0, len = xs.length; i < len; ++i) {
|
||||||
if (!Array.prototype.isPrototypeOf(xs[i]))
|
if (!isArray$1(xs[i])) {
|
||||||
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
||||||
|
}
|
||||||
push.apply(r, xs[i]);
|
push.apply(r, xs[i]);
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
};
|
};
|
||||||
var slice = Array.prototype.slice;
|
|
||||||
var from$1 = isFunction$1(Array.from) ? Array.from : function (x) {
|
var from$1 = isFunction$1(Array.from) ? Array.from : function (x) {
|
||||||
return slice.call(x);
|
return slice.call(x);
|
||||||
};
|
};
|
||||||
@ -4228,7 +4230,7 @@ var inlite = (function (domGlobals) {
|
|||||||
return NotificationManagerImpl(editor);
|
return NotificationManagerImpl(editor);
|
||||||
},
|
},
|
||||||
getWindowManagerImpl: function () {
|
getWindowManagerImpl: function () {
|
||||||
return WindowManagerImpl(editor);
|
return WindowManagerImpl();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -4238,8 +4240,9 @@ var inlite = (function (domGlobals) {
|
|||||||
|
|
||||||
var path = function (parts, scope) {
|
var path = function (parts, scope) {
|
||||||
var o = scope !== undefined && scope !== null ? scope : Global;
|
var o = scope !== undefined && scope !== null ? scope : Global;
|
||||||
for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i)
|
for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i) {
|
||||||
o = o[parts[i]];
|
o = o[parts[i]];
|
||||||
|
}
|
||||||
return o;
|
return o;
|
||||||
};
|
};
|
||||||
var resolve = function (p, scope) {
|
var resolve = function (p, scope) {
|
||||||
@ -4252,8 +4255,9 @@ var inlite = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
var getOrDie = function (name, scope) {
|
var getOrDie = function (name, scope) {
|
||||||
var actual = unsafe(name, scope);
|
var actual = unsafe(name, scope);
|
||||||
if (actual === undefined || actual === null)
|
if (actual === undefined || actual === null) {
|
||||||
throw name + ' not available on this browser';
|
throw new Error(name + ' not available on this browser');
|
||||||
|
}
|
||||||
return actual;
|
return actual;
|
||||||
};
|
};
|
||||||
var Global$1 = { getOrDie: getOrDie };
|
var Global$1 = { getOrDie: getOrDie };
|
||||||
@ -5173,9 +5177,10 @@ var inlite = (function (domGlobals) {
|
|||||||
global$7(input).on('click', function (e) {
|
global$7(input).on('click', function (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
global$7(self.getEl('button')).on('click', function (e) {
|
global$7(self.getEl('button')).on('click touchstart', function (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
input.click();
|
input.click();
|
||||||
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
self.getEl().appendChild(input);
|
self.getEl().appendChild(input);
|
||||||
},
|
},
|
||||||
@ -6315,18 +6320,20 @@ var inlite = (function (domGlobals) {
|
|||||||
var firstMatch = function (regexes, s) {
|
var firstMatch = function (regexes, s) {
|
||||||
for (var i = 0; i < regexes.length; i++) {
|
for (var i = 0; i < regexes.length; i++) {
|
||||||
var x = regexes[i];
|
var x = regexes[i];
|
||||||
if (x.test(s))
|
if (x.test(s)) {
|
||||||
return x;
|
return x;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
var find$1 = function (regexes, agent) {
|
var find$1 = function (regexes, agent) {
|
||||||
var r = firstMatch(regexes, agent);
|
var r = firstMatch(regexes, agent);
|
||||||
if (!r)
|
if (!r) {
|
||||||
return {
|
return {
|
||||||
major: 0,
|
major: 0,
|
||||||
minor: 0
|
minor: 0
|
||||||
};
|
};
|
||||||
|
}
|
||||||
var group = function (i) {
|
var group = function (i) {
|
||||||
return Number(agent.replace(r, '$' + i));
|
return Number(agent.replace(r, '$' + i));
|
||||||
};
|
};
|
||||||
@ -6334,8 +6341,9 @@ var inlite = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
var detect = function (versionRegexes, agent) {
|
var detect = function (versionRegexes, agent) {
|
||||||
var cleanedAgent = String(agent).toLowerCase();
|
var cleanedAgent = String(agent).toLowerCase();
|
||||||
if (versionRegexes.length === 0)
|
if (versionRegexes.length === 0) {
|
||||||
return unknown();
|
return unknown();
|
||||||
|
}
|
||||||
return find$1(versionRegexes, cleanedAgent);
|
return find$1(versionRegexes, cleanedAgent);
|
||||||
};
|
};
|
||||||
var unknown = function () {
|
var unknown = function () {
|
||||||
@ -6505,8 +6513,7 @@ var inlite = (function (domGlobals) {
|
|||||||
name: 'Edge',
|
name: 'Edge',
|
||||||
versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
|
versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
|
||||||
search: function (uastring) {
|
search: function (uastring) {
|
||||||
var monstrosity = contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
|
return contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
|
||||||
return monstrosity;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
File diff suppressed because one or more lines are too long
@ -150,10 +150,6 @@ var modern = (function (domGlobals) {
|
|||||||
var global$7 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
var global$7 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
||||||
|
|
||||||
var noop = function () {
|
var noop = function () {
|
||||||
var args = [];
|
|
||||||
for (var _i = 0; _i < arguments.length; _i++) {
|
|
||||||
args[_i] = arguments[_i];
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
var constant = function (value) {
|
var constant = function (value) {
|
||||||
return function () {
|
return function () {
|
||||||
@ -217,8 +213,9 @@ var modern = (function (domGlobals) {
|
|||||||
},
|
},
|
||||||
toString: constant('none()')
|
toString: constant('none()')
|
||||||
};
|
};
|
||||||
if (Object.freeze)
|
if (Object.freeze) {
|
||||||
Object.freeze(me);
|
Object.freeze(me);
|
||||||
|
}
|
||||||
return me;
|
return me;
|
||||||
}();
|
}();
|
||||||
var some = function (a) {
|
var some = function (a) {
|
||||||
@ -667,13 +664,16 @@ var modern = (function (domGlobals) {
|
|||||||
var ContextToolbars = { addContextualToolbars: addContextualToolbars };
|
var ContextToolbars = { addContextualToolbars: addContextualToolbars };
|
||||||
|
|
||||||
var typeOf = function (x) {
|
var typeOf = function (x) {
|
||||||
if (x === null)
|
if (x === null) {
|
||||||
return 'null';
|
return 'null';
|
||||||
|
}
|
||||||
var t = typeof x;
|
var t = typeof x;
|
||||||
if (t === 'object' && Array.prototype.isPrototypeOf(x))
|
if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
|
||||||
return 'array';
|
return 'array';
|
||||||
if (t === 'object' && String.prototype.isPrototypeOf(x))
|
}
|
||||||
|
if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
|
||||||
return 'string';
|
return 'string';
|
||||||
|
}
|
||||||
return t;
|
return t;
|
||||||
};
|
};
|
||||||
var isType = function (type) {
|
var isType = function (type) {
|
||||||
@ -681,9 +681,11 @@ var modern = (function (domGlobals) {
|
|||||||
return typeOf(value) === type;
|
return typeOf(value) === type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
var isArray = isType('array');
|
||||||
var isFunction = isType('function');
|
var isFunction = isType('function');
|
||||||
var isNumber = isType('number');
|
var isNumber = isType('number');
|
||||||
|
|
||||||
|
var slice = Array.prototype.slice;
|
||||||
var rawIndexOf = function () {
|
var rawIndexOf = function () {
|
||||||
var pIndexOf = Array.prototype.indexOf;
|
var pIndexOf = Array.prototype.indexOf;
|
||||||
var fastIndex = function (xs, x) {
|
var fastIndex = function (xs, x) {
|
||||||
@ -762,13 +764,13 @@ var modern = (function (domGlobals) {
|
|||||||
var flatten = function (xs) {
|
var flatten = function (xs) {
|
||||||
var r = [];
|
var r = [];
|
||||||
for (var i = 0, len = xs.length; i < len; ++i) {
|
for (var i = 0, len = xs.length; i < len; ++i) {
|
||||||
if (!Array.prototype.isPrototypeOf(xs[i]))
|
if (!isArray(xs[i])) {
|
||||||
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
||||||
|
}
|
||||||
push.apply(r, xs[i]);
|
push.apply(r, xs[i]);
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
};
|
};
|
||||||
var slice = Array.prototype.slice;
|
|
||||||
var from$1 = isFunction(Array.from) ? Array.from : function (x) {
|
var from$1 = isFunction(Array.from) ? Array.from : function (x) {
|
||||||
return slice.call(x);
|
return slice.call(x);
|
||||||
};
|
};
|
||||||
@ -4754,7 +4756,7 @@ var modern = (function (domGlobals) {
|
|||||||
return NotificationManagerImpl(editor);
|
return NotificationManagerImpl(editor);
|
||||||
};
|
};
|
||||||
var getWindowManagerImpl = function () {
|
var getWindowManagerImpl = function () {
|
||||||
return WindowManagerImpl(editor);
|
return WindowManagerImpl();
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
renderUI: renderUI,
|
renderUI: renderUI,
|
||||||
@ -4991,9 +4993,10 @@ var modern = (function (domGlobals) {
|
|||||||
global$9(input).on('click', function (e) {
|
global$9(input).on('click', function (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
global$9(self.getEl('button')).on('click', function (e) {
|
global$9(self.getEl('button')).on('click touchstart', function (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
input.click();
|
input.click();
|
||||||
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
self.getEl().appendChild(input);
|
self.getEl().appendChild(input);
|
||||||
},
|
},
|
||||||
@ -6091,6 +6094,32 @@ var modern = (function (domGlobals) {
|
|||||||
var ENTITY = domGlobals.Node.ENTITY_NODE;
|
var ENTITY = domGlobals.Node.ENTITY_NODE;
|
||||||
var NOTATION = domGlobals.Node.NOTATION_NODE;
|
var NOTATION = domGlobals.Node.NOTATION_NODE;
|
||||||
|
|
||||||
|
var Global = typeof domGlobals.window !== 'undefined' ? domGlobals.window : Function('return this;')();
|
||||||
|
|
||||||
|
var path = function (parts, scope) {
|
||||||
|
var o = scope !== undefined && scope !== null ? scope : Global;
|
||||||
|
for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i) {
|
||||||
|
o = o[parts[i]];
|
||||||
|
}
|
||||||
|
return o;
|
||||||
|
};
|
||||||
|
var resolve = function (p, scope) {
|
||||||
|
var parts = p.split('.');
|
||||||
|
return path(parts, scope);
|
||||||
|
};
|
||||||
|
|
||||||
|
var unsafe = function (name, scope) {
|
||||||
|
return resolve(name, scope);
|
||||||
|
};
|
||||||
|
var getOrDie = function (name, scope) {
|
||||||
|
var actual = unsafe(name, scope);
|
||||||
|
if (actual === undefined || actual === null) {
|
||||||
|
throw new Error(name + ' not available on this browser');
|
||||||
|
}
|
||||||
|
return actual;
|
||||||
|
};
|
||||||
|
var Global$1 = { getOrDie: getOrDie };
|
||||||
|
|
||||||
var Immutable = function () {
|
var Immutable = function () {
|
||||||
var fields = [];
|
var fields = [];
|
||||||
for (var _i = 0; _i < arguments.length; _i++) {
|
for (var _i = 0; _i < arguments.length; _i++) {
|
||||||
@ -6112,30 +6141,6 @@ var modern = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
var Global = typeof domGlobals.window !== 'undefined' ? domGlobals.window : Function('return this;')();
|
|
||||||
|
|
||||||
var path = function (parts, scope) {
|
|
||||||
var o = scope !== undefined && scope !== null ? scope : Global;
|
|
||||||
for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i)
|
|
||||||
o = o[parts[i]];
|
|
||||||
return o;
|
|
||||||
};
|
|
||||||
var resolve = function (p, scope) {
|
|
||||||
var parts = p.split('.');
|
|
||||||
return path(parts, scope);
|
|
||||||
};
|
|
||||||
|
|
||||||
var unsafe = function (name, scope) {
|
|
||||||
return resolve(name, scope);
|
|
||||||
};
|
|
||||||
var getOrDie = function (name, scope) {
|
|
||||||
var actual = unsafe(name, scope);
|
|
||||||
if (actual === undefined || actual === null)
|
|
||||||
throw name + ' not available on this browser';
|
|
||||||
return actual;
|
|
||||||
};
|
|
||||||
var Global$1 = { getOrDie: getOrDie };
|
|
||||||
|
|
||||||
var node = function () {
|
var node = function () {
|
||||||
var f = Global$1.getOrDie('Node');
|
var f = Global$1.getOrDie('Node');
|
||||||
return f;
|
return f;
|
||||||
@ -6157,18 +6162,20 @@ var modern = (function (domGlobals) {
|
|||||||
var firstMatch = function (regexes, s) {
|
var firstMatch = function (regexes, s) {
|
||||||
for (var i = 0; i < regexes.length; i++) {
|
for (var i = 0; i < regexes.length; i++) {
|
||||||
var x = regexes[i];
|
var x = regexes[i];
|
||||||
if (x.test(s))
|
if (x.test(s)) {
|
||||||
return x;
|
return x;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
var find$1 = function (regexes, agent) {
|
var find$1 = function (regexes, agent) {
|
||||||
var r = firstMatch(regexes, agent);
|
var r = firstMatch(regexes, agent);
|
||||||
if (!r)
|
if (!r) {
|
||||||
return {
|
return {
|
||||||
major: 0,
|
major: 0,
|
||||||
minor: 0
|
minor: 0
|
||||||
};
|
};
|
||||||
|
}
|
||||||
var group = function (i) {
|
var group = function (i) {
|
||||||
return Number(agent.replace(r, '$' + i));
|
return Number(agent.replace(r, '$' + i));
|
||||||
};
|
};
|
||||||
@ -6176,8 +6183,9 @@ var modern = (function (domGlobals) {
|
|||||||
};
|
};
|
||||||
var detect = function (versionRegexes, agent) {
|
var detect = function (versionRegexes, agent) {
|
||||||
var cleanedAgent = String(agent).toLowerCase();
|
var cleanedAgent = String(agent).toLowerCase();
|
||||||
if (versionRegexes.length === 0)
|
if (versionRegexes.length === 0) {
|
||||||
return unknown();
|
return unknown();
|
||||||
|
}
|
||||||
return find$1(versionRegexes, cleanedAgent);
|
return find$1(versionRegexes, cleanedAgent);
|
||||||
};
|
};
|
||||||
var unknown = function () {
|
var unknown = function () {
|
||||||
@ -6347,8 +6355,7 @@ var modern = (function (domGlobals) {
|
|||||||
name: 'Edge',
|
name: 'Edge',
|
||||||
versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
|
versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
|
||||||
search: function (uastring) {
|
search: function (uastring) {
|
||||||
var monstrosity = contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
|
return contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
|
||||||
return monstrosity;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
File diff suppressed because one or more lines are too long
1395
src/js/_enqueues/vendor/tinymce/tinymce.js
vendored
1395
src/js/_enqueues/vendor/tinymce/tinymce.js
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -27,7 +27,7 @@ $wp_db_version = 45805;
|
|||||||
*
|
*
|
||||||
* @global string $tinymce_version
|
* @global string $tinymce_version
|
||||||
*/
|
*/
|
||||||
$tinymce_version = '4940-20190515';
|
$tinymce_version = '4960-20190918';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the required PHP version
|
* Holds the required PHP version
|
||||||
|
Loading…
Reference in New Issue
Block a user