first commit
This commit is contained in:
18
public/assets/quill/blots/embed.d.ts
vendored
Normal file
18
public/assets/quill/blots/embed.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { ScrollBlot } from 'parchment';
|
||||
import { EmbedBlot } from 'parchment';
|
||||
export interface EmbedContextRange {
|
||||
startNode: Node | Text;
|
||||
startOffset: number;
|
||||
endNode?: Node | Text;
|
||||
endOffset?: number;
|
||||
}
|
||||
declare class Embed extends EmbedBlot {
|
||||
contentNode: HTMLSpanElement;
|
||||
leftGuard: Text;
|
||||
rightGuard: Text;
|
||||
constructor(scroll: ScrollBlot, node: Node);
|
||||
index(node: Node, offset: number): number;
|
||||
restore(node: Text): EmbedContextRange | null;
|
||||
update(mutations: MutationRecord[], context: Record<string, unknown>): void;
|
||||
}
|
||||
export default Embed;
|
||||
Reference in New Issue
Block a user