import { underlineMarkPlugin, underlineMark } from "./underlineMark.js";
import { createMarkHtmlDeserializer } from "../../../baseEditor/CustomMarkPlugin.js";
const withUnderline = (editor) => {
  editor.registerMark(underlineMarkPlugin);
  editor.htmlDeserializer.registerPlugin(createMarkHtmlDeserializer(underlineMark, (el) => el.nodeName === "U", (el) => el.style.textDecoration === "underline"));
  return editor;
};
export { withUnderline };
//# sourceMappingURL=withUnderline.js.map
