mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-29 18:56:12 +08:00
16 lines
253 B
TypeScript
16 lines
253 B
TypeScript
import { Plugin } from "ckeditor5";
|
|
|
|
export default class ItalicAsEmPlugin extends Plugin {
|
|
|
|
init() {
|
|
this.editor.conversion
|
|
.for("downcast")
|
|
.attributeToElement({
|
|
model: "italic",
|
|
view: "em",
|
|
converterPriority: "high"
|
|
});
|
|
}
|
|
|
|
}
|