mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +08:00
25 lines
776 B
TypeScript
25 lines
776 B
TypeScript
import "ckeditor5";
|
|
|
|
declare global {
|
|
interface Component {
|
|
triggerCommand(command: string): void;
|
|
}
|
|
|
|
interface EditorComponent extends Component {
|
|
loadReferenceLinkTitle($el: JQuery<HTMLElement>, href: string): Promise<void>;
|
|
createNoteForReferenceLink(title: string): Promise<string>;
|
|
loadIncludedNote(noteId: string, $el: JQuery<HTMLElement>): void;
|
|
}
|
|
|
|
var glob: {
|
|
getComponentByEl<T extends Component>(el: unknown): T;
|
|
getActiveContextNote(): {
|
|
noteId: string;
|
|
};
|
|
getHeaders(): Promise<Record<string, string>>;
|
|
getReferenceLinkTitle(href: string): Promise<string>;
|
|
getReferenceLinkTitleSync(href: string): string;
|
|
importMarkdownInline(): void;
|
|
}
|
|
}
|