1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00

Update node modules

This commit is contained in:
Daniel Neto 2024-10-27 13:39:07 -03:00
parent d429e6f7d8
commit c05a371397
1993 changed files with 9729 additions and 44041 deletions

View file

@ -1,5 +1,5 @@
/**
* TinyMCE version 7.3.0 (2024-08-07)
* TinyMCE version 7.4.1 (TBD)
*/
(function () {
@ -749,7 +749,7 @@
const rng = editor.selection.getRng();
return isDetails(rng.startContainer) && rng.collapsed && rng.startOffset === 0;
};
const isInsertAllowed = editor => !isInSummary(editor) && editor.dom.isEditable(editor.selection.getNode());
const isInsertAllowed = editor => !isInSummary(editor) && editor.dom.isEditable(editor.selection.getNode()) && !editor.mode.isReadOnly();
const getSelectedDetails = editor => Optional.from(editor.dom.getParent(editor.selection.getNode(), isDetails));
const isDetailsSelected = editor => getSelectedDetails(editor).isSome();
const insertBogus = element => {
@ -829,16 +829,18 @@
});
};
const removeAccordion = editor => {
getSelectedDetails(editor).each(details => {
const {nextSibling} = details;
if (nextSibling) {
editor.selection.select(nextSibling, true);
editor.selection.collapse(true);
} else {
insertAndSelectParagraphAfter(editor, details);
}
details.remove();
});
if (!editor.mode.isReadOnly()) {
getSelectedDetails(editor).each(details => {
const {nextSibling} = details;
if (nextSibling) {
editor.selection.select(nextSibling, true);
editor.selection.collapse(true);
} else {
insertAndSelectParagraphAfter(editor, details);
}
details.remove();
});
}
};
const toggleAllAccordions = (editor, state) => {
const accordions = Array.from(editor.getBody().querySelectorAll('details'));