mirror of
https://github.com/tabler/tabler.git
synced 2025-12-23 18:34:25 +04:00
Update bootstrap to v5.3.0 (#1272)
This commit is contained in:
15
demo/dist/libs/tinymce/plugins/link/plugin.js
vendored
15
demo/dist/libs/tinymce/plugins/link/plugin.js
vendored
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* TinyMCE version 6.2.0 (2022-09-08)
|
||||
* TinyMCE version 6.3.0 (2022-11-23)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
@@ -424,8 +424,17 @@
|
||||
const isOnlyTextSelected = editor => {
|
||||
const inlineTextElements = editor.schema.getTextInlineElements();
|
||||
const isElement = elm => elm.nodeType === 1 && !isAnchor(elm) && !has(inlineTextElements, elm.nodeName.toLowerCase());
|
||||
const elements = collectNodesInRange(editor.selection.getRng(), isElement);
|
||||
return elements.length === 0;
|
||||
const isInBlockAnchor = getAnchorElement(editor).exists(anchor => anchor.hasAttribute('data-mce-block'));
|
||||
if (isInBlockAnchor) {
|
||||
return false;
|
||||
}
|
||||
const rng = editor.selection.getRng();
|
||||
if (!rng.collapsed) {
|
||||
const elements = collectNodesInRange(rng, isElement);
|
||||
return elements.length === 0;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
const isImageFigure = elm => isNonNullable(elm) && elm.nodeName === 'FIGURE' && /\bimage\b/i.test(elm.className);
|
||||
const getLinkAttrs = data => {
|
||||
|
||||
Reference in New Issue
Block a user