"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const Slate = require("slate");
const ejectElement = (editor, path) => {
  const element = Slate.Node.get(editor, path);
  if (!Slate.Element.isElement(element)) {
    return;
  }
  const { children, ...otherProperties } = element;
  Slate.Transforms.unsetNodes(editor, Object.keys(otherProperties), {
    at: path
  });
};
exports.ejectElement = ejectElement;
//# sourceMappingURL=ejectElement.cjs.map
