mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
We can add a skip intro button on video
This commit is contained in:
parent
f712438ec1
commit
f9c735b2bb
196 changed files with 6055 additions and 3586 deletions
29
node_modules/tinymce/plugins/fullscreen/plugin.js
generated
vendored
29
node_modules/tinymce/plugins/fullscreen/plugin.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* TinyMCE version 7.0.1 (2024-04-10)
|
||||
* TinyMCE version 7.1.0 (2024-05-08)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
|
@ -19,7 +19,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
var global$2 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
var global$3 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
const get$5 = fullscreenState => ({ isFullscreen: () => fullscreenState.get() !== null });
|
||||
|
||||
|
@ -949,9 +949,9 @@
|
|||
return { unbind: () => visualViewport.removeEventListener(name, handler) };
|
||||
}).getOrThunk(() => ({ unbind: noop }));
|
||||
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
||||
var global$2 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.Env');
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.Env');
|
||||
|
||||
const fireFullscreenStateChanged = (editor, state) => {
|
||||
editor.dispatch('FullscreenStateChanged', { state });
|
||||
|
@ -1028,7 +1028,7 @@
|
|||
const ancestorPosition = 'position:absolute!important;';
|
||||
const ancestorStyles = 'top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;';
|
||||
const bgFallback = 'background-color:rgb(255,255,255)!important;';
|
||||
const isAndroid = global.os.isAndroid();
|
||||
const isAndroid = global$1.os.isAndroid();
|
||||
const matchColor = editorBody => {
|
||||
const color = get$2(editorBody, 'background-color');
|
||||
return color !== undefined && color !== '' ? 'background-color:' + color + '!important' : bgFallback;
|
||||
|
@ -1068,7 +1068,7 @@
|
|||
});
|
||||
};
|
||||
|
||||
const DOM = global$1.DOM;
|
||||
const DOM = global$2.DOM;
|
||||
const getScrollPos = () => getBounds(window);
|
||||
const setScrollPos = pos => window.scrollTo(pos.x, pos.y);
|
||||
const viewportUpdate = get().fold(() => ({
|
||||
|
@ -1123,7 +1123,7 @@
|
|||
const fullscreenRoot = getFullscreenRoot(editor);
|
||||
const fullscreenInfo = fullscreenState.get();
|
||||
const editorBody = SugarElement.fromDom(editor.getBody());
|
||||
const isTouch = global.deviceType.isTouch();
|
||||
const isTouch = global$1.deviceType.isTouch();
|
||||
const editorContainerStyle = editorContainer.style;
|
||||
const iframe = editor.iframeElement;
|
||||
const iframeStyle = iframe === null || iframe === void 0 ? void 0 : iframe.style;
|
||||
|
@ -1207,6 +1207,18 @@
|
|||
});
|
||||
};
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.util.VK');
|
||||
|
||||
const setup = (editor, fullscreenState) => {
|
||||
editor.on('init', () => {
|
||||
editor.on('keydown', e => {
|
||||
if (e.keyCode === global.TAB && !(e.metaKey || e.ctrlKey) && fullscreenState.get()) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
const makeSetupHandler = (editor, fullscreenState) => api => {
|
||||
api.setActive(fullscreenState.get() !== null);
|
||||
const editorEventCallback = e => api.setActive(e.state);
|
||||
|
@ -1232,7 +1244,7 @@
|
|||
};
|
||||
|
||||
var Plugin = () => {
|
||||
global$2.add('fullscreen', editor => {
|
||||
global$3.add('fullscreen', editor => {
|
||||
const fullscreenState = Cell(null);
|
||||
if (editor.inline) {
|
||||
return get$5(fullscreenState);
|
||||
|
@ -1240,6 +1252,7 @@
|
|||
register$2(editor);
|
||||
register$1(editor, fullscreenState);
|
||||
register(editor, fullscreenState);
|
||||
setup(editor, fullscreenState);
|
||||
editor.addShortcut('Meta+Shift+F', '', 'mceFullScreen');
|
||||
return get$5(fullscreenState);
|
||||
});
|
||||
|
|
4
node_modules/tinymce/plugins/fullscreen/plugin.min.js
generated
vendored
4
node_modules/tinymce/plugins/fullscreen/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