Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build/ctct-paste-errors-changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- **BUGFIX**: Paste Plugin
Add an exception handler for the paste() call and only write to console.error if it exists
8 changes: 7 additions & 1 deletion src/plugins/common/paste/lib/paste-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,13 @@ define([
// that the pasted content has been inserted into the paste div before
// we attempt to retrieve it.
window.setTimeout(function () {
paste($CLIPBOARD, range, onInsert);
try {
paste($CLIPBOARD, range, onInsert);
} catch (e) {
if (console && console.error) {
console.error('Aloha Error (This is Generally Benign):', e);
}
}
Aloha.activeEditable.smartContentChange($event);
}, 10);
}
Expand Down