mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-30 19:27:48 +08:00
16 lines
263 B
TypeScript
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"
|
|
});
|
|
}
|
|
|
|
}
|