mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
add inputmask
This commit is contained in:
parent
ab84f1e730
commit
e07838c6c7
203 changed files with 29712 additions and 5216 deletions
24
node_modules/tinymce/plugins/charmap/plugin.js
generated
vendored
24
node_modules/tinymce/plugins/charmap/plugin.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* TinyMCE version 6.1.2 (2022-07-29)
|
||||
* TinyMCE version 6.2.0 (2022-09-08)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
|
@ -41,6 +41,7 @@
|
|||
const eq = t => a => t === a;
|
||||
const isArray$1 = isType('array');
|
||||
const isNull = eq(null);
|
||||
const isUndefined = eq(undefined);
|
||||
const isNullable = a => a === null || a === undefined;
|
||||
const isNonNullable = a => !isNullable(a);
|
||||
const isFunction = isSimpleType('function');
|
||||
|
@ -1418,7 +1419,10 @@
|
|||
if (userCharMapAppend) {
|
||||
const userDefinedGroup = global.grep(charmap, cg => cg.name === UserDefined);
|
||||
if (userDefinedGroup.length) {
|
||||
userDefinedGroup[0].characters = [].concat(userDefinedGroup[0].characters).concat(getCharsFromOption(userCharMapAppend));
|
||||
userDefinedGroup[0].characters = [
|
||||
...userDefinedGroup[0].characters,
|
||||
...getCharsFromOption(userCharMapAppend)
|
||||
];
|
||||
return charmap;
|
||||
}
|
||||
return charmap.concat({
|
||||
|
@ -1484,8 +1488,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 fromCodePoint = String.fromCodePoint;
|
||||
|
||||
|
@ -1593,7 +1602,7 @@
|
|||
|
||||
const init = (editor, all) => {
|
||||
editor.ui.registry.addAutocompleter('charmap', {
|
||||
ch: ':',
|
||||
trigger: ':',
|
||||
columns: 'auto',
|
||||
minChars: 2,
|
||||
fetch: (pattern, _maxResults) => new Promise((resolve, _reject) => {
|
||||
|
@ -1608,15 +1617,16 @@
|
|||
};
|
||||
|
||||
const register = editor => {
|
||||
const onAction = () => editor.execCommand('mceShowCharmap');
|
||||
editor.ui.registry.addButton('charmap', {
|
||||
icon: 'insert-character',
|
||||
tooltip: 'Special character',
|
||||
onAction: () => editor.execCommand('mceShowCharmap')
|
||||
onAction
|
||||
});
|
||||
editor.ui.registry.addMenuItem('charmap', {
|
||||
icon: 'insert-character',
|
||||
text: 'Special character...',
|
||||
onAction: () => editor.execCommand('mceShowCharmap')
|
||||
onAction
|
||||
});
|
||||
};
|
||||
|
||||
|
|
4
node_modules/tinymce/plugins/charmap/plugin.min.js
generated
vendored
4
node_modules/tinymce/plugins/charmap/plugin.min.js
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue