From 91f68d766537d9e14b83c1a94757d14139076123 Mon Sep 17 00:00:00 2001 From: hikaru-y Date: Thu, 8 Jul 2021 01:19:19 +0900 Subject: [PATCH] Set lineWiseCopyCut option to false Fixes https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/103 Related: https://github.com/codemirror/CodeMirror/issues/3169 --- ts/editor/codable.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/editor/codable.ts b/ts/editor/codable.ts index cdc062916..8b86bffd0 100644 --- a/ts/editor/codable.ts +++ b/ts/editor/codable.ts @@ -22,6 +22,7 @@ const codeMirrorOptions = { autoCloseTags: true, extraKeys: { Tab: false, "Shift-Tab": false }, viewportMargin: Infinity, + lineWiseCopyCut: false, }; const parser = new DOMParser();