mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
d3c0ea46e2
commit
09ff23dc70
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ Object.assign(allowedTagsExtended, allowedTagsBasic);
|
||||||
|
|
||||||
// filtering from another field
|
// filtering from another field
|
||||||
var filterInternalNode = function (node) {
|
var filterInternalNode = function (node) {
|
||||||
if (node.tagName === "SPAN") {
|
if (node.style) {
|
||||||
node.style.removeProperty("background-color");
|
node.style.removeProperty("background-color");
|
||||||
node.style.removeProperty("font-size");
|
node.style.removeProperty("font-size");
|
||||||
node.style.removeProperty("font-family");
|
node.style.removeProperty("font-family");
|
||||||
|
|
Loading…
Reference in a new issue