@bigbinary/neeto-editor 1.45.30 → 1.45.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor.js +4 -4
- package/dist/Editor.js.map +1 -1
- package/dist/FormikEditor.js +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{chunk-NtwHU3BJ.js → chunk-B6_bJoYE.js} +4 -3
- package/dist/{chunk-NtwHU3BJ.js.map → chunk-B6_bJoYE.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +4 -4
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +1 -1
- package/dist/cjs/Menu.cjs.js +1 -1
- package/dist/cjs/{chunk-CeC7JCxH.cjs.js → chunk-0fKNRx3i.cjs.js} +4 -3
- package/dist/cjs/{chunk-CeC7JCxH.cjs.js.map → chunk-0fKNRx3i.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/editor-stats.html +1 -19
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/Editor.js
CHANGED
|
@@ -4,7 +4,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { memo, useEffect, useState, useRef, useCallback, createElement, forwardRef, useImperativeHandle } from 'react';
|
|
7
|
-
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, i as isNodeActive, e as isAtStartOfNode, f as isAtEndOfNode, h as getNodeType, j as getNodeAtPosition, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, l as callOrReturn, n as getExtensionField, o as isNodeSelection, p as nodeInputRule, q as findChildren, r as NodeViewWrapper, s as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, u as escapeForRegEx, x as ReactRenderer, y as EmojiPickerMenu, z as emojiPickerApi, A as combineTransactionSteps, B as getChangedRanges, C as findChildrenInRange, F as getMarksBetween, G as getAttributes, I as InputRule, H as highlightFocussedNode, J as resetFocussedNode, K as findParentNodeClosestToPos, L as BubbleMenu, O as getLinkPopoverPosition, Q as getMarkType, S as getMarkRange, T as useEditor, U as useEditorState, M as Menu$3, V as EditorContent, W as MediaUploader, X as EmbedOption, Y as EditorView } from './chunk-
|
|
7
|
+
import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, i as isNodeActive, e as isAtStartOfNode, f as isAtEndOfNode, h as getNodeType, j as getNodeAtPosition, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, l as callOrReturn, n as getExtensionField, o as isNodeSelection, p as nodeInputRule, q as findChildren, r as NodeViewWrapper, s as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, u as escapeForRegEx, x as ReactRenderer, y as EmojiPickerMenu, z as emojiPickerApi, A as combineTransactionSteps, B as getChangedRanges, C as findChildrenInRange, F as getMarksBetween, G as getAttributes, I as InputRule, H as highlightFocussedNode, J as resetFocussedNode, K as findParentNodeClosestToPos, L as BubbleMenu, O as getLinkPopoverPosition, Q as getMarkType, S as getMarkRange, T as useEditor, U as useEditorState, M as Menu$3, V as EditorContent, W as MediaUploader, X as EmbedOption, Y as EditorView } from './chunk-B6_bJoYE.js';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, a as EDITOR_SIZES } from './chunk-FWwP48qR.js';
|
|
10
10
|
import { isNotPresent, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
|
|
@@ -10780,10 +10780,10 @@ var ImageExtension = Node.create({
|
|
|
10780
10780
|
}
|
|
10781
10781
|
},
|
|
10782
10782
|
alt: {
|
|
10783
|
-
"default": "",
|
|
10783
|
+
"default": "image",
|
|
10784
10784
|
parseHTML: function parseHTML(element) {
|
|
10785
10785
|
var _element$querySelecto2;
|
|
10786
|
-
return (_element$querySelecto2 = element.querySelector("img")) === null || _element$querySelecto2 === void 0 ? void 0 : _element$querySelecto2.getAttribute("alt");
|
|
10786
|
+
return ((_element$querySelecto2 = element.querySelector("img")) === null || _element$querySelecto2 === void 0 ? void 0 : _element$querySelecto2.getAttribute("alt")) || "image";
|
|
10787
10787
|
}
|
|
10788
10788
|
},
|
|
10789
10789
|
figheight: {
|
|
@@ -10938,7 +10938,7 @@ var ImageExtension = Node.create({
|
|
|
10938
10938
|
updateTr = view.state.tr.setNodeMarkup(currentPos + 1, null, {
|
|
10939
10939
|
id: id,
|
|
10940
10940
|
src: url,
|
|
10941
|
-
alt: ""
|
|
10941
|
+
alt: "image"
|
|
10942
10942
|
});
|
|
10943
10943
|
view.dispatch(updateTr);
|
|
10944
10944
|
currentPos += emptyImageNode.nodeSize;
|