chore(ckeditor5/plugins): integrate reference link

This commit is contained in:
Elian Doran
2025-05-03 17:00:24 +03:00
parent a54d8ed811
commit 2dcd37001f
7 changed files with 45 additions and 25 deletions

View File

@@ -1,14 +1,22 @@
import "ckeditor5";
declare global {
interface Component {
triggerCommand(command: string): void;
}
interface EditorComponent extends Component {
loadReferenceLinkTitle($el: JQuery<HTMLElement>, href: string): Promise<void>;
}
var glob: {
getComponentByEl(el: unknown): {
triggerCommand(command: string): void;
};
getComponentByEl<T extends Component>(el: unknown): T;
getActiveContextNote(): {
noteId: string;
};
getHeaders(): Promise<Record<string, string>>;
getReferenceLinkTitle(href: string): Promise<string>;
getReferenceLinkTitleSync(href: string): string;
}
}