chore(ckeditor5/plugins): integrate italic as em & strikehtrough as del

This commit is contained in:
Elian Doran
2025-05-03 16:45:42 +03:00
parent 5cb5d8e511
commit daa1df5a24
3 changed files with 6 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
import { Plugin } from "ckeditor5";
export default class ItalicAsEmPlugin extends Plugin {
init() {
this.editor.conversion
.for("downcast")
.attributeToElement({
model: "italic",
view: "em",
converterPriority: "high"
});
}
}

View File

@@ -0,0 +1,15 @@
import { Plugin } from "ckeditor5";
export default class StrikethroughAsDel extends Plugin {
init() {
this.editor.conversion
.for("downcast")
.attributeToElement({
model: "strikethrough",
view: "del",
converterPriority: "high"
});
}
}