"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const underlineMark = require("./underlineMark.cjs");
const CustomMarkPlugin = require("../../../baseEditor/CustomMarkPlugin.cjs");
const withUnderline = (editor) => {
  editor.registerMark(underlineMark.underlineMarkPlugin);
  editor.htmlDeserializer.registerPlugin(
    CustomMarkPlugin.createMarkHtmlDeserializer(
      underlineMark.underlineMark,
      (el) => el.nodeName === "U",
      (el) => el.style.textDecoration === "underline"
    )
  );
  return editor;
};
exports.withUnderline = withUnderline;
//# sourceMappingURL=withUnderline.cjs.map
