fix(widget-markdown): stop double pasting in raw editor (#3083)

This commit is contained in:
Shawn Erquhart 2020-01-13 19:48:01 -05:00 committed by GitHub
parent b733419264
commit 09564bf8b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();