feat: 更新资源

This commit is contained in:
dhx
2022-10-04 15:31:23 +08:00
parent faa89ce9c4
commit c7c96813ab
1215 changed files with 3744 additions and 935440 deletions
+10 -4
View File
@@ -1,5 +1,5 @@
/**
* TinyMCE version 6.0.3 (2022-05-25)
* TinyMCE version 6.2.0 (2022-09-08)
*/
(function () {
@@ -9,6 +9,7 @@
const eq = t => a => t === a;
const isNull = eq(null);
const isUndefined = eq(undefined);
const isNullable = a => a === null || a === undefined;
const isNonNullable = a => !isNullable(a);
@@ -256,8 +257,13 @@
};
const checkRange = (str, substr, start) => substr === '' || str.length >= substr.length && str.substr(start, start + substr.length) === substr;
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 startsWith = (str, prefix) => {
return checkRange(str, prefix, 0);
@@ -530,7 +536,7 @@
const init = (editor, database) => {
editor.ui.registry.addAutocompleter('emoticons', {
ch: ':',
trigger: ':',
columns: 'auto',
minChars: 2,
fetch: (pattern, maxResults) => database.waitForLoad().then(() => {
File diff suppressed because one or more lines are too long