@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.
@@ -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, {