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
This commit is contained in:
Damien Elmes 2018-11-12 15:46:12 +10:00
parent d3c0ea46e2
commit 09ff23dc70

View file

@ -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");