@contentful/field-editor-rich-text 2.0.0-next.12 → 2.0.0-next.13
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/field-editor-rich-text.cjs.development.js +6 -2
- package/dist/field-editor-rich-text.cjs.development.js.map +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js +1 -1
- package/dist/field-editor-rich-text.cjs.production.min.js.map +1 -1
- package/dist/field-editor-rich-text.esm.js +6 -2
- package/dist/field-editor-rich-text.esm.js.map +1 -1
- package/dist/helpers/editor.d.ts +7 -8
- package/dist/test-utils/jsx.d.ts +1 -1
- package/dist/test-utils/mockPlugin.d.ts +1 -1
- package/package.json +1 -1
|
@@ -543,6 +543,10 @@ function insertLink(editor, options) {
|
|
|
543
543
|
} // TODO: move to hyperlink plugin
|
|
544
544
|
|
|
545
545
|
function isLinkActive(editor) {
|
|
546
|
+
if (!editor) {
|
|
547
|
+
return false;
|
|
548
|
+
}
|
|
549
|
+
|
|
546
550
|
var _Array$from2 = Array.from(slate.Editor.nodes(editor, {
|
|
547
551
|
match: function match(node) {
|
|
548
552
|
return !slate.Editor.isEditor(node) && slate.Element.isElement(node) && LINK_TYPES.includes(node.type);
|
|
@@ -5894,10 +5898,10 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5894
5898
|
isDisabled: isDisabled
|
|
5895
5899
|
})), validationInfo.isAnyBlockFormattingEnabled && /*#__PURE__*/React__default.createElement("span", {
|
|
5896
5900
|
className: styles$k.divider
|
|
5897
|
-
}), isNodeTypeEnabled(sdk.field, Contentful.BLOCKS.QUOTE) && /*#__PURE__*/React__default.createElement(ToolbarQuoteButton, {
|
|
5898
|
-
isDisabled: isDisabled || !canInsertBlocks
|
|
5899
5901
|
}), /*#__PURE__*/React__default.createElement(ToolbarListButton, {
|
|
5900
5902
|
isDisabled: isDisabled || !canInsertBlocks
|
|
5903
|
+
}), isNodeTypeEnabled(sdk.field, Contentful.BLOCKS.QUOTE) && /*#__PURE__*/React__default.createElement(ToolbarQuoteButton, {
|
|
5904
|
+
isDisabled: isDisabled || !canInsertBlocks
|
|
5901
5905
|
}), isNodeTypeEnabled(sdk.field, Contentful.BLOCKS.HR) && /*#__PURE__*/React__default.createElement(ToolbarHrButton, {
|
|
5902
5906
|
isDisabled: isDisabled || !canInsertBlocks
|
|
5903
5907
|
}), isNodeTypeEnabled(sdk.field, Contentful.BLOCKS.TABLE) && /*#__PURE__*/React__default.createElement(ToolbarTableButton, {
|