Merge pull request #27913 from 43081j/quill-signature

quill: fix signature for clipboard api
This commit is contained in:
Ron Buckton
2018-08-06 14:56:05 -07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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;
+1
View File
@@ -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() {