mirror of https://github.com/TriliumNext/Notes
feat(editor): rewrite <s> to <del>
parent
fceee44844
commit
1a1cb3d60b
@ -0,0 +1,15 @@
|
||||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
||||
|
||||
export default class StrikethroughAsDel extends Plugin {
|
||||
|
||||
init() {
|
||||
this.editor.conversion
|
||||
.for("downcast")
|
||||
.attributeToElement({
|
||||
model: "strikethrough",
|
||||
view: "del",
|
||||
converterPriority: "high"
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue