mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
Update node modules
This commit is contained in:
parent
d429e6f7d8
commit
c05a371397
1993 changed files with 9729 additions and 44041 deletions
13
node_modules/tinymce/plugins/lists/plugin.js
generated
vendored
13
node_modules/tinymce/plugins/lists/plugin.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* TinyMCE version 7.3.0 (2024-08-07)
|
||||
* TinyMCE version 7.4.1 (TBD)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
|
@ -836,11 +836,11 @@
|
|||
const isWithinNonEditable = (editor, element) => element !== null && !editor.dom.isEditable(element);
|
||||
const selectionIsWithinNonEditableList = editor => {
|
||||
const parentList = getParentList(editor);
|
||||
return isWithinNonEditable(editor, parentList);
|
||||
return isWithinNonEditable(editor, parentList) || !editor.selection.isEditable();
|
||||
};
|
||||
const isWithinNonEditableList = (editor, element) => {
|
||||
const parentList = editor.dom.getParent(element, 'ol,ul,dl');
|
||||
return isWithinNonEditable(editor, parentList);
|
||||
return isWithinNonEditable(editor, parentList) || !editor.selection.isEditable();
|
||||
};
|
||||
const setNodeChangeHandler = (editor, nodeChangeHandler) => {
|
||||
const initialNode = editor.selection.getNode();
|
||||
|
@ -1831,7 +1831,14 @@
|
|||
const backspaceDeleteRange = editor => {
|
||||
if (hasListSelection(editor)) {
|
||||
editor.undoManager.transact(() => {
|
||||
let shouldFireInput = true;
|
||||
const inputHandler = () => shouldFireInput = false;
|
||||
editor.on('input', inputHandler);
|
||||
editor.execCommand('Delete');
|
||||
editor.off('input', inputHandler);
|
||||
if (shouldFireInput) {
|
||||
editor.dispatch('input');
|
||||
}
|
||||
normalizeLists(editor.dom, editor.getBody());
|
||||
});
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue