mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
30 lines
772 B
TypeScript
30 lines
772 B
TypeScript
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<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;
|
|
}
|
|
}
|
|
|
|
declare module "ckeditor5" {
|
|
interface Editor {
|
|
getSelectedHtml(): string;
|
|
removeSelection(): Promise<void>;
|
|
}
|
|
}
|