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