import { backgroundColorConverter } from "./color-converter.js";
import { sketchConverter } from "./sketch/sketch-converter.js";
import { getSketchHighlightTextButtons } from "./sketch/text-highlight-button.js";
import { tiptapSketchExtension } from "./sketch/tiptap.js";
import { tiptapColorBackgroundExtension } from "./tiptap-background.js";
import { TEXT_HIGHLIGHT_TYPE } from "./types.js";
const pluginTextHighlight = (config = {}) => {
  return {
    config: { ...config, type: "textHighlight" },
    pmMarkConverters: [backgroundColorConverter, sketchConverter],
    pmNodeConverters: [],
    type: TEXT_HIGHLIGHT_TYPE,
    textButtons: getSketchHighlightTextButtons(config),
    tiptapExtensions: [tiptapColorBackgroundExtension, tiptapSketchExtension]
  };
};
export {
  pluginTextHighlight
};
//# sourceMappingURL=text-highlight-editor.js.map
