From 09ff23dc709bbf6773b9ae3ec9757c8439e79593 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 12 Nov 2018 15:46:12 +1000 Subject: [PATCH] filter font and background from all html elems in int. paste https://anki.tenderapp.com/discussions/ankidesktop/30806-font-size-attribute-added-when-copying-text-inside-anki --- web/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/editor.js b/web/editor.js index ca52b5636..a4f36056c 100644 --- a/web/editor.js +++ b/web/editor.js @@ -386,7 +386,7 @@ Object.assign(allowedTagsExtended, allowedTagsBasic); // filtering from another field var filterInternalNode = function (node) { - if (node.tagName === "SPAN") { + if (node.style) { node.style.removeProperty("background-color"); node.style.removeProperty("font-size"); node.style.removeProperty("font-family");