Notes/packages/ckeditor5/src/plugins/italic_as_em.ts

16 lines
253 B
TypeScript
Raw Normal View History

import { Plugin } from "ckeditor5";
2025-03-14 11:30:44 +02:00
export default class ItalicAsEmPlugin extends Plugin {
init() {
this.editor.conversion
.for("downcast")
.attributeToElement({
model: "italic",
view: "em",
converterPriority: "high"
});
}
}