"use strict";

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