"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const italicMark = require("./italicMark.cjs");
const CustomMarkPlugin = require("../../../baseEditor/CustomMarkPlugin.cjs");
const withItalic = (editor) => {
  editor.registerMark(italicMark.italicMarkPlugin);
  editor.htmlDeserializer.registerPlugin(
    CustomMarkPlugin.createMarkHtmlDeserializer(
      italicMark.italicMark,
      (el) => ["I", "EM"].includes(el.nodeName),
      (el) => ["italic", "oblique"].includes(el.style.fontWeight)
    )
  );
  return editor;
};
exports.withItalic = withItalic;
//# sourceMappingURL=withItalic.cjs.map
