feat: 更新资源
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* TinyMCE version 6.0.3 (2022-05-25)
|
||||
* TinyMCE version 6.2.0 (2022-09-08)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
@@ -50,6 +50,7 @@
|
||||
const isArray = isType$1('array');
|
||||
const isNull = eq$1(null);
|
||||
const isBoolean = isSimpleType('boolean');
|
||||
const isUndefined = eq$1(undefined);
|
||||
const isNullable = a => a === null || a === undefined;
|
||||
const isNonNullable = a => !isNullable(a);
|
||||
const isFunction = isSimpleType('function');
|
||||
@@ -295,8 +296,13 @@
|
||||
}
|
||||
};
|
||||
|
||||
const contains = (str, substr) => {
|
||||
return str.indexOf(substr) !== -1;
|
||||
const contains = (str, substr, start = 0, end) => {
|
||||
const idx = str.indexOf(substr, start);
|
||||
if (idx !== -1) {
|
||||
return isUndefined(end) ? true : idx + substr.length <= end;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
const isSupported$1 = dom => dom.style !== undefined && isFunction(dom.style.getPropertyValue);
|
||||
@@ -904,6 +910,7 @@
|
||||
|
||||
const fireFullscreenStateChanged = (editor, state) => {
|
||||
editor.dispatch('FullscreenStateChanged', { state });
|
||||
editor.dispatch('ResizeEditor');
|
||||
};
|
||||
|
||||
const option = name => editor => editor.options.get(name);
|
||||
@@ -1007,7 +1014,7 @@
|
||||
const clobberedEls = all('[' + attr + ']');
|
||||
each$1(clobberedEls, element => {
|
||||
const restore = get$3(element, attr);
|
||||
if (restore !== 'no-styles') {
|
||||
if (restore && restore !== 'no-styles') {
|
||||
setAll(element, dom.parseStyle(restore));
|
||||
} else {
|
||||
remove(element, 'style');
|
||||
@@ -1073,7 +1080,7 @@
|
||||
const isTouch = global.deviceType.isTouch();
|
||||
const editorContainerStyle = editorContainer.style;
|
||||
const iframe = editor.iframeElement;
|
||||
const iframeStyle = iframe.style;
|
||||
const iframeStyle = iframe === null || iframe === void 0 ? void 0 : iframe.style;
|
||||
const handleClasses = handler => {
|
||||
handler(body, 'tox-fullscreen');
|
||||
handler(documentElement, 'tox-fullscreen');
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user