mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Also check the lang in case insensitive
This commit is contained in:
parent
33e7f7384e
commit
2a9630258f
22658 changed files with 3562773 additions and 3562767 deletions
12
node_modules/tinymce/plugins/visualblocks/index.js
generated
vendored
12
node_modules/tinymce/plugins/visualblocks/index.js
generated
vendored
|
@ -1,7 +1,7 @@
|
|||
// Exports the "visualblocks" plugin for usage with module loaders
|
||||
// Usage:
|
||||
// CommonJS:
|
||||
// require('tinymce/plugins/visualblocks')
|
||||
// ES2015:
|
||||
// import 'tinymce/plugins/visualblocks'
|
||||
// Exports the "visualblocks" plugin for usage with module loaders
|
||||
// Usage:
|
||||
// CommonJS:
|
||||
// require('tinymce/plugins/visualblocks')
|
||||
// ES2015:
|
||||
// import 'tinymce/plugins/visualblocks'
|
||||
require('./plugin.js');
|
206
node_modules/tinymce/plugins/visualblocks/plugin.js
generated
vendored
206
node_modules/tinymce/plugins/visualblocks/plugin.js
generated
vendored
|
@ -1,103 +1,103 @@
|
|||
/**
|
||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
||||
* Licensed under the LGPL or a commercial license.
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var Cell = function (initial) {
|
||||
var value = initial;
|
||||
var get = function () {
|
||||
return value;
|
||||
};
|
||||
var set = function (v) {
|
||||
value = v;
|
||||
};
|
||||
return {
|
||||
get: get,
|
||||
set: set
|
||||
};
|
||||
};
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
var fireVisualBlocks = function (editor, state) {
|
||||
editor.fire('VisualBlocks', { state: state });
|
||||
};
|
||||
|
||||
var toggleVisualBlocks = function (editor, pluginUrl, enabledState) {
|
||||
var dom = editor.dom;
|
||||
dom.toggleClass(editor.getBody(), 'mce-visualblocks');
|
||||
enabledState.set(!enabledState.get());
|
||||
fireVisualBlocks(editor, enabledState.get());
|
||||
};
|
||||
|
||||
var register$1 = function (editor, pluginUrl, enabledState) {
|
||||
editor.addCommand('mceVisualBlocks', function () {
|
||||
toggleVisualBlocks(editor, pluginUrl, enabledState);
|
||||
});
|
||||
};
|
||||
|
||||
var isEnabledByDefault = function (editor) {
|
||||
return editor.getParam('visualblocks_default_state', false, 'boolean');
|
||||
};
|
||||
|
||||
var setup = function (editor, pluginUrl, enabledState) {
|
||||
editor.on('PreviewFormats AfterPreviewFormats', function (e) {
|
||||
if (enabledState.get()) {
|
||||
editor.dom.toggleClass(editor.getBody(), 'mce-visualblocks', e.type === 'afterpreviewformats');
|
||||
}
|
||||
});
|
||||
editor.on('init', function () {
|
||||
if (isEnabledByDefault(editor)) {
|
||||
toggleVisualBlocks(editor, pluginUrl, enabledState);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
var toggleActiveState = function (editor, enabledState) {
|
||||
return function (api) {
|
||||
api.setActive(enabledState.get());
|
||||
var editorEventCallback = function (e) {
|
||||
return api.setActive(e.state);
|
||||
};
|
||||
editor.on('VisualBlocks', editorEventCallback);
|
||||
return function () {
|
||||
return editor.off('VisualBlocks', editorEventCallback);
|
||||
};
|
||||
};
|
||||
};
|
||||
var register = function (editor, enabledState) {
|
||||
var onAction = function () {
|
||||
return editor.execCommand('mceVisualBlocks');
|
||||
};
|
||||
editor.ui.registry.addToggleButton('visualblocks', {
|
||||
icon: 'visualblocks',
|
||||
tooltip: 'Show blocks',
|
||||
onAction: onAction,
|
||||
onSetup: toggleActiveState(editor, enabledState)
|
||||
});
|
||||
editor.ui.registry.addToggleMenuItem('visualblocks', {
|
||||
text: 'Show blocks',
|
||||
icon: 'visualblocks',
|
||||
onAction: onAction,
|
||||
onSetup: toggleActiveState(editor, enabledState)
|
||||
});
|
||||
};
|
||||
|
||||
function Plugin () {
|
||||
global.add('visualblocks', function (editor, pluginUrl) {
|
||||
var enabledState = Cell(false);
|
||||
register$1(editor, pluginUrl, enabledState);
|
||||
register(editor, enabledState);
|
||||
setup(editor, pluginUrl, enabledState);
|
||||
});
|
||||
}
|
||||
|
||||
Plugin();
|
||||
|
||||
}());
|
||||
/**
|
||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
||||
* Licensed under the LGPL or a commercial license.
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var Cell = function (initial) {
|
||||
var value = initial;
|
||||
var get = function () {
|
||||
return value;
|
||||
};
|
||||
var set = function (v) {
|
||||
value = v;
|
||||
};
|
||||
return {
|
||||
get: get,
|
||||
set: set
|
||||
};
|
||||
};
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
var fireVisualBlocks = function (editor, state) {
|
||||
editor.fire('VisualBlocks', { state: state });
|
||||
};
|
||||
|
||||
var toggleVisualBlocks = function (editor, pluginUrl, enabledState) {
|
||||
var dom = editor.dom;
|
||||
dom.toggleClass(editor.getBody(), 'mce-visualblocks');
|
||||
enabledState.set(!enabledState.get());
|
||||
fireVisualBlocks(editor, enabledState.get());
|
||||
};
|
||||
|
||||
var register$1 = function (editor, pluginUrl, enabledState) {
|
||||
editor.addCommand('mceVisualBlocks', function () {
|
||||
toggleVisualBlocks(editor, pluginUrl, enabledState);
|
||||
});
|
||||
};
|
||||
|
||||
var isEnabledByDefault = function (editor) {
|
||||
return editor.getParam('visualblocks_default_state', false, 'boolean');
|
||||
};
|
||||
|
||||
var setup = function (editor, pluginUrl, enabledState) {
|
||||
editor.on('PreviewFormats AfterPreviewFormats', function (e) {
|
||||
if (enabledState.get()) {
|
||||
editor.dom.toggleClass(editor.getBody(), 'mce-visualblocks', e.type === 'afterpreviewformats');
|
||||
}
|
||||
});
|
||||
editor.on('init', function () {
|
||||
if (isEnabledByDefault(editor)) {
|
||||
toggleVisualBlocks(editor, pluginUrl, enabledState);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
var toggleActiveState = function (editor, enabledState) {
|
||||
return function (api) {
|
||||
api.setActive(enabledState.get());
|
||||
var editorEventCallback = function (e) {
|
||||
return api.setActive(e.state);
|
||||
};
|
||||
editor.on('VisualBlocks', editorEventCallback);
|
||||
return function () {
|
||||
return editor.off('VisualBlocks', editorEventCallback);
|
||||
};
|
||||
};
|
||||
};
|
||||
var register = function (editor, enabledState) {
|
||||
var onAction = function () {
|
||||
return editor.execCommand('mceVisualBlocks');
|
||||
};
|
||||
editor.ui.registry.addToggleButton('visualblocks', {
|
||||
icon: 'visualblocks',
|
||||
tooltip: 'Show blocks',
|
||||
onAction: onAction,
|
||||
onSetup: toggleActiveState(editor, enabledState)
|
||||
});
|
||||
editor.ui.registry.addToggleMenuItem('visualblocks', {
|
||||
text: 'Show blocks',
|
||||
icon: 'visualblocks',
|
||||
onAction: onAction,
|
||||
onSetup: toggleActiveState(editor, enabledState)
|
||||
});
|
||||
};
|
||||
|
||||
function Plugin () {
|
||||
global.add('visualblocks', function (editor, pluginUrl) {
|
||||
var enabledState = Cell(false);
|
||||
register$1(editor, pluginUrl, enabledState);
|
||||
register(editor, enabledState);
|
||||
setup(editor, pluginUrl, enabledState);
|
||||
});
|
||||
}
|
||||
|
||||
Plugin();
|
||||
|
||||
}());
|
||||
|
|
16
node_modules/tinymce/plugins/visualblocks/plugin.min.js
generated
vendored
16
node_modules/tinymce/plugins/visualblocks/plugin.min.js
generated
vendored
|
@ -1,9 +1,9 @@
|
|||
/**
|
||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
||||
* Licensed under the LGPL or a commercial license.
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
/**
|
||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
||||
* Licensed under the LGPL or a commercial license.
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function f(t,o,e){var n,i;t.dom.toggleClass(t.getBody(),"mce-visualblocks"),e.set(!e.get()),n=t,i=e.get(),n.fire("VisualBlocks",{state:i})}function g(e,n){return function(o){function t(t){return o.setActive(t.state)}return o.setActive(n.get()),e.on("VisualBlocks",t),function(){return e.off("VisualBlocks",t)}}}tinymce.util.Tools.resolve("tinymce.PluginManager").add("visualblocks",function(t,o){var e,n,i,s,c,u,l,a=(e=!1,{get:function(){return e},set:function(t){e=t}});function r(){return s.execCommand("mceVisualBlocks")}i=a,(n=t).addCommand("mceVisualBlocks",function(){f(n,0,i)}),(s=t).ui.registry.addToggleButton("visualblocks",{icon:"visualblocks",tooltip:"Show blocks",onAction:r,onSetup:g(s,c=a)}),s.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",icon:"visualblocks",onAction:r,onSetup:g(s,c)}),l=a,(u=t).on("PreviewFormats AfterPreviewFormats",function(t){l.get()&&u.dom.toggleClass(u.getBody(),"mce-visualblocks","afterpreviewformats"===t.type)}),u.on("init",function(){u.getParam("visualblocks_default_state",!1,"boolean")&&f(u,0,l)})})}();
|
Loading…
Add table
Add a link
Reference in a new issue