You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WordPressEditor/WordPressEditor/Classes/Plugins/WordPressPlugin/Calypso/Embeds/WordPressPasteboardDelegate.swift
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,11 @@ class WordPressTextViewPasteboardDelegate: AztecTextViewPasteboardDelegate {
17
17
}
18
18
19
19
letresult= super.tryPastingString(in: textView)
20
-
21
-
// Bump the input to the next line – we need the embed link to be the only
22
-
// text on this line – otherwise it can't be autoconverted.
23
-
textView.insertText(String(.lineSeparator))
20
+
if result {
21
+
// Bump the input to the next line – we need the embed link to be the only
22
+
// text on this line – otherwise it can't be autoconverted.
0 commit comments