Clean default font-weight on paste
-
As already mentioned in this post, https://wordpress.org/support/topic/remove-default-font-weight/ , Classic Editor cleans up the code very well when pasting from Google Docs (and Word), except for span style=”font-weight: 400
Clipboard Viewer: https://dmsnell.github.io/ghpages/clipboard.html
text/plain:
"Example text"text/html:
text/html "<html>\r\n<body>\r\n<!--StartFragment--><meta charset=\"utf-8\"><b style=\"font-weight:normal;\" id=\"docs-internal-guid-9fd94199-7fff-079a-5222-0bbdc9053616\"><span style=\"font-size:13.999999999999998pt;font-family:Arial,sans-serif;color:#434343;background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;\">Example text</span></b><!--EndFragment-->\r\n</body>\r\n</html>"Result when pasting with Classic Editor:
<span style="font-weight: 400;">Example text</span>Any idea for removing this also? Thanks
You must be logged in to reply to this topic.