Skip to content

Commit

Permalink
clear previous input, closes #1502
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Jun 21, 2017
1 parent 2ae58c8 commit 2bafa85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docs/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class PlainClipboard extends Clipboard {
if (typeof html === 'string') {
this.container.innerHTML = html;
}
return new Delta().insert(this.container.innerText);
let text = this.container.innerText;
this.container.innerHTML = '';
return new Delta().insert(text);
}
}

Expand Down

0 comments on commit 2bafa85

Please sign in to comment.