File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -645,6 +645,7 @@ export default class CodeEditor extends React.Component {
645
645
}
646
646
647
647
const pastedTxt = clipboard . readText ( )
648
+ console . log ( pastedTxt )
648
649
649
650
if ( isInFencedCodeBlock ( editor ) ) {
650
651
this . handlePasteText ( editor , pastedTxt )
@@ -667,16 +668,14 @@ export default class CodeEditor extends React.Component {
667
668
this . handlePasteText ( editor , pastedTxt )
668
669
}
669
670
}
670
- } else {
671
- this . handlePasteText ( editor , pastedTxt )
672
- }
673
-
674
- if ( attachmentManagement . isAttachmentLink ( pastedTxt ) ) {
671
+ } else if ( attachmentManagement . isAttachmentLink ( pastedTxt ) ) {
675
672
attachmentManagement
676
673
. handleAttachmentLinkPaste ( storageKey , noteKey , pastedTxt )
677
674
. then ( modifiedText => {
678
675
this . editor . replaceSelection ( modifiedText )
679
676
} )
677
+ } else {
678
+ this . handlePasteText ( editor , pastedTxt )
680
679
}
681
680
}
682
681
You can’t perform that action at this time.
0 commit comments