mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-24 18:10:25 +00:00
Merge pull request #27913 from 43081j/quill-signature
quill: fix signature for clipboard api
This commit is contained in:
Vendored
+1
-1
@@ -43,7 +43,7 @@ export interface KeyboardStatic {
|
||||
}
|
||||
|
||||
export interface ClipboardStatic {
|
||||
convert(html: string|Blot): DeltaStatic;
|
||||
convert(html?: string): DeltaStatic;
|
||||
addMatcher(selectorOrNodeType: string|number, callback: (node: any, delta: DeltaStatic) => DeltaStatic): void;
|
||||
dangerouslyPasteHTML(html: string, source?: Sources): void;
|
||||
dangerouslyPasteHTML(index: number, html: string, source?: Sources): void;
|
||||
|
||||
@@ -148,6 +148,7 @@ function test_setHtmlContents() {
|
||||
const html = "<b>this is a bold text</b>";
|
||||
const delta = quillEditor.clipboard.convert(html);
|
||||
quillEditor.setContents(delta);
|
||||
quillEditor.clipboard.convert();
|
||||
}
|
||||
|
||||
function test_getSelection() {
|
||||
|
||||
Reference in New Issue
Block a user