"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _textEditorConstants = require("../text-editor-constants");
const withLinks = editor => {
  const {
    isInline
  } = editor;
  const newIsInline = element => {
    if (element.type === _textEditorConstants.BLOCK_TYPES.LINK) {
      return true;
    }
    return isInline(element);
  };
  editor.isInline = newIsInline;
  return editor;
};
var _default = exports.default = withLinks;