Keeps inline font-size when you paste inside the Anki editor β e.g. copying text from one card to another, or copying part of a card and pasting it below.
Anki's editor deliberately strips inline font-size (and font-family / width / height / max-*) from pasted content, even for internal copy/paste. This add-on preserves it.
What it does
- For internal pastes it still runs Anki's own pre-filter (tags/images), then inserts via a raw execCommand insert instead of Anki's filtering pasteHTML
- Result: inline font-size survives internal pastes
- External pastes (from outside Anki) are left completely untouched
- Safe fallback to Anki's default paste on any error
Configuration (Tools β Add-ons β Config)
enabled (default true): master switch
apply_when_stripping (default false): also keep font-size on internal "strip formatting" pastes
By default only "paste with formatting" is affected; a deliberate "strip formatting" paste keeps Anki's default behaviour.
Developed for modern Anki (Qt6).
Source & issues
https://github.com/david-becher/anki-keep-font-size-on-paste
Licensed under the MIT License.