Skip to content

Commit

Permalink
Merge branch 'main' into eslint/client
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbutler committed Oct 5, 2020
2 parents 99e2d2f + e3d6bf4 commit e05e22f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/data-objects/webflow/src/clipboard/paste.ts
Expand Up @@ -21,9 +21,7 @@ export function paste(doc: FlowDocument, data: DataTransfer, position: number) {
const root = document.createElement("span");
root.innerHTML = content;
pasteChildren(doc, root, position);
// TODO: fix this bug
// eslint-disable-next-line no-dupe-else-if
} else if (content = data.getData(ClipboardFormat.html)) {
} else if (content = data.getData(ClipboardFormat.text)) {
debug("paste('text/plain'): %s", content);
doc.insertText(position, content);
} else {
Expand Down

0 comments on commit e05e22f

Please sign in to comment.