diff --git a/src/mathcommand.ts b/src/mathcommand.ts index 644da0b96..5a8dbbe9f 100644 --- a/src/mathcommand.ts +++ b/src/mathcommand.ts @@ -2,8 +2,8 @@ import { Command } from 'ckeditor5/src/core'; import { getSelectedMathModelWidget } from './utils'; export default class MathCommand extends Command { - public value: string | null = null; - public execute( + public override value: string | null = null; + public override execute( equation: string, display?: boolean, outputType: 'script' | 'span' = 'script', @@ -45,7 +45,7 @@ export default class MathCommand extends Command { public display = false; - public refresh(): void { + public override refresh(): void { const model = this.editor.model; const selection = model.document.selection; const selectedElement = selection.getSelectedElement(); diff --git a/src/mathui.ts b/src/mathui.ts index 92bc290b2..12a9b2776 100644 --- a/src/mathui.ts +++ b/src/mathui.ts @@ -38,7 +38,7 @@ export default class MathUI extends Plugin { this._enableUserBalloonInteractions(); } - public destroy(): void { + public override destroy(): void { super.destroy(); this.formView?.destroy(); diff --git a/src/ui/mainformview.ts b/src/ui/mainformview.ts index 0af0e8ab8..dc4897868 100644 --- a/src/ui/mainformview.ts +++ b/src/ui/mainformview.ts @@ -37,7 +37,7 @@ export default class MainFormView extends View { public previewEnabled: boolean; public previewLabel?: LabelView; public mathView?: MathView; - public locale: Locale = new Locale(); + public override locale: Locale = new Locale(); public lazyLoad: undefined | ( () => Promise ); constructor( @@ -127,7 +127,7 @@ export default class MainFormView extends View { } ); } - public render(): void { + public override render(): void { super.render(); // Prevent default form submit event & trigger custom 'submit' diff --git a/src/ui/mathview.ts b/src/ui/mathview.ts index ac8c3a574..5ee587d16 100644 --- a/src/ui/mathview.ts +++ b/src/ui/mathview.ts @@ -73,7 +73,7 @@ export default class MathView extends View { } } - public render(): void { + public override render(): void { super.render(); this.updateMath(); }