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
18
node_modules/tinymce/plugins/link/plugin.js
generated
vendored
18
node_modules/tinymce/plugins/link/plugin.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* TinyMCE version 7.3.0 (2024-08-07)
|
||||
* TinyMCE version 7.4.1 (TBD)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
|
@ -1031,6 +1031,18 @@
|
|||
};
|
||||
};
|
||||
|
||||
const removeFromStart = (str, numChars) => {
|
||||
return str.substring(numChars);
|
||||
};
|
||||
|
||||
const checkRange = (str, substr, start) => substr === '' || str.length >= substr.length && str.substr(start, start + substr.length) === substr;
|
||||
const removeLeading = (str, prefix) => {
|
||||
return startsWith(str, prefix) ? removeFromStart(str, prefix.length) : str;
|
||||
};
|
||||
const startsWith = (str, prefix) => {
|
||||
return checkRange(str, prefix, 0);
|
||||
};
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.util.VK');
|
||||
|
||||
const appendClickRemove = (link, evt) => {
|
||||
|
@ -1058,7 +1070,7 @@
|
|||
if (a) {
|
||||
const href = getHref(a);
|
||||
if (/^#/.test(href)) {
|
||||
const targetEl = editor.dom.select(href);
|
||||
const targetEl = editor.dom.select(`${ href },[name="${ removeLeading(href, '#') }"]`);
|
||||
if (targetEl.length) {
|
||||
editor.selection.scrollIntoView(targetEl[0], true);
|
||||
}
|
||||
|
@ -1205,7 +1217,7 @@
|
|||
};
|
||||
const onSetupLink = buttonApi => {
|
||||
const node = editor.selection.getNode();
|
||||
buttonApi.setEnabled(isInAnchor(editor, node));
|
||||
buttonApi.setEnabled(isInAnchor(editor, node) && editor.selection.isEditable());
|
||||
return noop;
|
||||
};
|
||||
const getLinkText = value => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue