import { Plugin, PluginKey } from "./../../pm/state.js";
import { Extension } from "../extension.js";
const Paste = Extension.create({
  name: "paste",
  addProseMirrorPlugins() {
    return [
      new Plugin({
        key: new PluginKey("tiptapPaste"),
        props: {
          handlePaste: (_view, e, slice) => {
            this.editor.emit("paste", {
              editor: this.editor,
              event: e,
              slice
            });
          }
        }
      })
    ];
  }
});
export {
  Paste
};
//# sourceMappingURL=paste.js.map
