@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
|
@@ -536,6 +536,10 @@ function insertLink(editor, options) {
|
|
|
536
536
|
} // TODO: move to hyperlink plugin
|
|
537
537
|
|
|
538
538
|
function isLinkActive(editor) {
|
|
539
|
+
if (!editor) {
|
|
540
|
+
return false;
|
|
541
|
+
}
|
|
542
|
+
|
|
539
543
|
var _Array$from2 = Array.from(Editor.nodes(editor, {
|
|
540
544
|
match: function match(node) {
|
|
541
545
|
return !Editor.isEditor(node) && Element.isElement(node) && LINK_TYPES.includes(node.type);
|
|
@@ -5887,10 +5891,10 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
5887
5891
|
isDisabled: isDisabled
|
|
5888
5892
|
})), validationInfo.isAnyBlockFormattingEnabled && /*#__PURE__*/React__default.createElement("span", {
|
|
5889
5893
|
className: styles$k.divider
|
|
5890
|
-
}), isNodeTypeEnabled(sdk.field, BLOCKS.QUOTE) && /*#__PURE__*/React__default.createElement(ToolbarQuoteButton, {
|
|
5891
|
-
isDisabled: isDisabled || !canInsertBlocks
|
|
5892
5894
|
}), /*#__PURE__*/React__default.createElement(ToolbarListButton, {
|
|
5893
5895
|
isDisabled: isDisabled || !canInsertBlocks
|
|
5896
|
+
}), isNodeTypeEnabled(sdk.field, BLOCKS.QUOTE) && /*#__PURE__*/React__default.createElement(ToolbarQuoteButton, {
|
|
5897
|
+
isDisabled: isDisabled || !canInsertBlocks
|
|
5894
5898
|
}), isNodeTypeEnabled(sdk.field, BLOCKS.HR) && /*#__PURE__*/React__default.createElement(ToolbarHrButton, {
|
|
5895
5899
|
isDisabled: isDisabled || !canInsertBlocks
|
|
5896
5900
|
}), isNodeTypeEnabled(sdk.field, BLOCKS.TABLE) && /*#__PURE__*/React__default.createElement(ToolbarTableButton, {
|