1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00

add inputmask

This commit is contained in:
DanieL 2022-09-21 13:51:50 -03:00
parent ab84f1e730
commit e07838c6c7
203 changed files with 29712 additions and 5216 deletions

View file

@ -1,5 +1,5 @@
/**
* TinyMCE version 6.1.2 (2022-07-29)
* TinyMCE version 6.2.0 (2022-09-08)
*/
(function () {
@ -112,8 +112,6 @@
const get$1 = (xs, i) => i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
const head = xs => get$1(xs, 0);
const someIf = (b, a) => b ? Optional.some(a) : Optional.none();
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
const Global = typeof window !== 'undefined' ? window : Function('return this;')();
@ -2206,12 +2204,12 @@
const get = editor => Global.Prism && useGlobalPrismJS(editor) ? Global.Prism : prismjs;
const isCodeSample = elm => {
return elm && elm.nodeName === 'PRE' && elm.className.indexOf('language-') !== -1;
return isNonNullable(elm) && elm.nodeName === 'PRE' && elm.className.indexOf('language-') !== -1;
};
const getSelectedCodeSample = editor => {
const node = editor.selection ? editor.selection.getNode() : null;
return someIf(isCodeSample(node), node);
return isCodeSample(node) ? Optional.some(node) : Optional.none();
};
const insertCodeSample = (editor, language, code) => {
const dom = editor.dom;
@ -2233,7 +2231,7 @@
};
const getCurrentCode = editor => {
const node = getSelectedCodeSample(editor);
return node.fold(constant(''), n => n.textContent);
return node.bind(n => Optional.from(n.textContent)).getOr('');
};
const getLanguages = editor => {