import { generateId } from "./../../ricos-content/index.js";
const insertNode = (type, attrs = {}) => ({ chain }) => {
  return chain().focus().insertContent({
    type,
    attrs: { id: attrs.id || generateId(), ...attrs }
  }).run();
};
export {
  insertNode
};
//# sourceMappingURL=insert-node.js.map
