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

16 lines
263 B
TypeScript

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