fix(widget-markdown): stop double pasting in raw editor (#3083)
This commit is contained in:
parent
b733419264
commit
09564bf8b6
@ -66,6 +66,7 @@ export default class RawEditor extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
handlePaste = (event, editor, next) => {
|
handlePaste = (event, editor, next) => {
|
||||||
|
event.preventDefault();
|
||||||
const data = event.clipboardData;
|
const data = event.clipboardData;
|
||||||
if (isHotkey('shift', event)) {
|
if (isHotkey('shift', event)) {
|
||||||
return next();
|
return next();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user