Properly prepare text for clipboard for context menu

This makes the context menu in macOS embed the right text
This commit is contained in:
Daniel Imms
2017-05-25 18:12:03 -07:00
parent 24bed01fa4
commit 910aa1ad7f
+1 -1
View File
@@ -113,7 +113,7 @@ export function rightClickHandler(ev: MouseEvent, textarea: HTMLTextAreaElement,
textarea.style.zIndex = '1000';
// Get textarea ready to copy from the context menu
textarea.value = selectionManager.selectionText;
textarea.value = prepareTextForClipboard(selectionManager.selectionText);
textarea.focus();
textarea.select();