mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
This commit is contained in:
parent
746e163d01
commit
1c7ea28b46
808 changed files with 316395 additions and 381162 deletions
36
node_modules/tinymce/plugins/quickbars/plugin.js
generated
vendored
36
node_modules/tinymce/plugins/quickbars/plugin.js
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
/**
|
||||
* TinyMCE version 6.3.1 (2022-12-06)
|
||||
* TinyMCE version 6.4.2 (2023-04-26)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var global$2 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
const hasProto = (v, constructor, predicate) => {
|
||||
var _a;
|
||||
|
@ -111,11 +111,10 @@
|
|||
});
|
||||
};
|
||||
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.Env');
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
||||
|
||||
const pickFile = editor => new Promise(resolve => {
|
||||
let resolved = false;
|
||||
const fileInput = document.createElement('input');
|
||||
fileInput.type = 'file';
|
||||
fileInput.accept = 'image/*';
|
||||
|
@ -124,20 +123,29 @@
|
|||
fileInput.style.top = '0';
|
||||
fileInput.style.opacity = '0.001';
|
||||
document.body.appendChild(fileInput);
|
||||
const changeHandler = e => {
|
||||
resolve(Array.prototype.slice.call(e.target.files));
|
||||
const resolveFileInput = value => {
|
||||
var _a;
|
||||
if (!resolved) {
|
||||
(_a = fileInput.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(fileInput);
|
||||
resolved = true;
|
||||
resolve(value);
|
||||
}
|
||||
};
|
||||
const changeHandler = e => {
|
||||
resolveFileInput(Array.prototype.slice.call(e.target.files));
|
||||
};
|
||||
fileInput.addEventListener('input', changeHandler);
|
||||
fileInput.addEventListener('change', changeHandler);
|
||||
const cancelHandler = e => {
|
||||
const cleanup = () => {
|
||||
var _a;
|
||||
resolve([]);
|
||||
(_a = fileInput.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(fileInput);
|
||||
resolveFileInput([]);
|
||||
};
|
||||
if (global$1.os.isAndroid() && e.type !== 'remove') {
|
||||
global.setEditorTimeout(editor, cleanup, 0);
|
||||
} else {
|
||||
cleanup();
|
||||
if (!resolved) {
|
||||
if (e.type === 'focusin') {
|
||||
global.setEditorTimeout(editor, cleanup, 1000);
|
||||
} else {
|
||||
cleanup();
|
||||
}
|
||||
}
|
||||
editor.off('focusin remove', cancelHandler);
|
||||
};
|
||||
|
@ -416,7 +424,7 @@
|
|||
};
|
||||
|
||||
var Plugin = () => {
|
||||
global$2.add('quickbars', editor => {
|
||||
global$1.add('quickbars', editor => {
|
||||
register(editor);
|
||||
setupButtons(editor);
|
||||
addToEditor$1(editor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue