"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const strikeThroughMark = require("./strikeThroughMark.cjs");
const CustomMarkPlugin = require("../../../baseEditor/CustomMarkPlugin.cjs");
const withStrikeThrough = (editor) => {
  editor.registerMark(strikeThroughMark.strikeThroughPlugin);
  editor.htmlDeserializer.registerPlugin(
    CustomMarkPlugin.createMarkHtmlDeserializer(
      strikeThroughMark.strikeThroughMark,
      (el) => el.nodeName === "S",
      (el) => el.style.textDecoration === "line-through"
    )
  );
  return editor;
};
exports.withStrikeThrough = withStrikeThrough;
//# sourceMappingURL=withStrikeThrough.cjs.map
