mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
npm update
This commit is contained in:
parent
0cdd3e9fee
commit
4696ba952f
1437 changed files with 32727 additions and 1248226 deletions
24
node_modules/tinymce/plugins/image/plugin.js
generated
vendored
24
node_modules/tinymce/plugins/image/plugin.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* TinyMCE version 6.4.2 (2023-04-26)
|
||||
* TinyMCE version 6.6.2 (2023-08-09)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
|
@ -1456,6 +1456,16 @@
|
|||
});
|
||||
};
|
||||
|
||||
const onSetupEditable = editor => api => {
|
||||
const nodeChanged = () => {
|
||||
api.setEnabled(editor.selection.isEditable());
|
||||
};
|
||||
editor.on('NodeChange', nodeChanged);
|
||||
nodeChanged();
|
||||
return () => {
|
||||
editor.off('NodeChange', nodeChanged);
|
||||
};
|
||||
};
|
||||
const register = editor => {
|
||||
editor.ui.registry.addToggleButton('image', {
|
||||
icon: 'image',
|
||||
|
@ -1463,15 +1473,21 @@
|
|||
onAction: Dialog(editor).open,
|
||||
onSetup: buttonApi => {
|
||||
buttonApi.setActive(isNonNullable(getSelectedImage(editor)));
|
||||
return editor.selection.selectorChangedWithUnbind('img:not([data-mce-object]):not([data-mce-placeholder]),figure.image', buttonApi.setActive).unbind;
|
||||
const unbindSelectorChanged = editor.selection.selectorChangedWithUnbind('img:not([data-mce-object]):not([data-mce-placeholder]),figure.image', buttonApi.setActive).unbind;
|
||||
const unbindEditable = onSetupEditable(editor)(buttonApi);
|
||||
return () => {
|
||||
unbindSelectorChanged();
|
||||
unbindEditable();
|
||||
};
|
||||
}
|
||||
});
|
||||
editor.ui.registry.addMenuItem('image', {
|
||||
icon: 'image',
|
||||
text: 'Image...',
|
||||
onAction: Dialog(editor).open
|
||||
onAction: Dialog(editor).open,
|
||||
onSetup: onSetupEditable(editor)
|
||||
});
|
||||
editor.ui.registry.addContextMenu('image', { update: element => isFigure(element) || isImage(element) && !isPlaceholderImage(element) ? ['image'] : [] });
|
||||
editor.ui.registry.addContextMenu('image', { update: element => editor.selection.isEditable() && (isFigure(element) || isImage(element) && !isPlaceholderImage(element)) ? ['image'] : [] });
|
||||
};
|
||||
|
||||
var Plugin = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue