"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _constants = require("../../constants");
const withColumn = editor => {
  const {
    isInline,
    isVoid
  } = editor;
  const newEditor = editor;
  newEditor.isInline = element => {
    const {
      type
    } = element;
    if (type === _constants.ELementTypes.COLUMN) return true;
    return isInline(element);
  };
  newEditor.isVoid = element => {
    const {
      type
    } = element;
    if (type === _constants.ELementTypes.COLUMN) return true;
    return isVoid(element);
  };
  return newEditor;
};
var _default = exports.default = withColumn;