-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
45 lines (41 loc) · 1.49 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { BlockTool, InlineTool, PasteEvent, SanitizerConfig } from "@editorjs/editorjs";
import { MoveEvent } from "@editorjs/editorjs/types/tools";
import EditorJS from "@editorjs/editorjs";
import sortBlocks from "./src/blocksorter/sortBlocks";
declare module 'editorjs-footnotes' {
export function sortBlocks(editor: EditorJS): Promise<void>
export class Footnote implements BlockTool {
sanitize?: SanitizerConfig;
save(block: HTMLElement): void;
renderSettings?(): HTMLElement;
validate?(blockData: any): boolean;
merge?(blockData: any): void;
onPaste?(event: PasteEvent): void;
rendered?(): void;
updated?(): void;
removed?(): void;
moved?(event: MoveEvent): void;
render(): HTMLElement;
}
export class FootnoteMaker implements InlineTool {
shortcut?: string;
surround(range: Range): void;
checkState(selection: Selection): boolean;
renderActions?(): HTMLElement;
clear?(): void;
render(): HTMLElement;
}
export class TypedParagraph implements BlockTool {
sanitize?: SanitizerConfig;
save(block: HTMLElement): void;
renderSettings?(): HTMLElement;
validate?(blockData: any): boolean;
merge?(blockData: any): void;
onPaste?(event: PasteEvent): void;
rendered?(): void;
updated?(): void;
removed?(): void;
moved?(event: MoveEvent): void;
render(): HTMLElement;
}
}