Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#11153 from sumitkm/master
Browse files Browse the repository at this point in the history
Updated pasteHTML(...) interface definitions and bumped version to v1.0.3
  • Loading branch information
sheetalkamat authored Sep 9, 2016
2 parents a28c672 + fd9ccf7 commit 7eca47e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions quill/quill-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,15 @@ function test_on_EventType1(){
});

}

function test_PasteHTML()
{
var quillEditor = new Quill('#editor');
quillEditor.pasteHTML('<h1>Quill Rocks</h1>');
}

function test_PasteHTML2()
{
var quillEditor = new Quill('#editor');
quillEditor.pasteHTML(5, '<h1>Quill Rocks</h1>');
}
5 changes: 3 additions & 2 deletions quill/quill.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for Quill v1.0.0
// Type definitions for Quill v1.0.3
// Project: http://quilljs.com
// Definitions by: Sumit <https://github.com/sumitkm>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Expand Down Expand Up @@ -49,7 +49,8 @@ declare namespace QuillJS {
insertText(index: number, text: string, source?: sourceType): void;
insertText(index: number, text: string, format: string, value: string, source?: sourceType): void;
insertText(index: number, text: string, formats: formatsType, source?: sourceType): void;
pasteHTML(): string;
pasteHTML(index: number, html: string, source?:sourceType): string;
pasteHTML(html:string, source?: sourceType): string;
setContents(delta: DeltaStatic, source?: sourceType): void;
setText(text: string, source?: sourceType): void;
update(source?: string): void;
Expand Down

0 comments on commit 7eca47e

Please sign in to comment.