import { Plugin, PluginKey } from "./../../pm/state.js";
import { Extension } from "../extension.js";
const Tabindex = Extension.create({
  name: "tabindex",
  addProseMirrorPlugins() {
    return [
      new Plugin({
        key: new PluginKey("tabindex"),
        props: {
          attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
        }
      })
    ];
  }
});
export {
  Tabindex
};
//# sourceMappingURL=tabindex.js.map
