mirror of
https://github.com/zadam/trilium.git
synced 2025-12-08 08:24:24 +01:00
26 lines
890 B
TypeScript
26 lines
890 B
TypeScript
import "ckeditor5";
|
|
import { type CreateNoteAction } from "@triliumnext/commons"
|
|
|
|
declare global {
|
|
interface Component {
|
|
triggerCommand(command: string): void;
|
|
}
|
|
|
|
interface EditorComponent extends Component {
|
|
loadReferenceLinkTitle($el: JQuery<HTMLElement>, href: string): Promise<void>;
|
|
// Must Return Note Path
|
|
createNoteFromCkEditor(title: string, parentNotePath: string | undefined, action: CreateNoteAction): 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;
|
|
}
|
|
}
|