Skip to content

Commit

Permalink
fix(widget-markdown): stop double pasting in raw editor (#3083)
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart committed Jan 14, 2020
1 parent b733419 commit 09564bf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default class RawEditor extends React.Component {
};

handlePaste = (event, editor, next) => {
event.preventDefault();
const data = event.clipboardData;
if (isHotkey('shift', event)) {
return next();
Expand Down

0 comments on commit 09564bf

Please sign in to comment.