Anki Keep Font Size on Paste

AnkiWeb addon 1934775761

Preserves inline font-size when pasting copied text between Anki cards internally, leaving external pastes untouched, with configurable options including optional retention during strip-formatting pastes.
AI-generated summary; may contain mistakes.

formattingbugfix-workaround

Open on AnkiWeb Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-08-19
Anki versions
26.05~
License
MIT (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-08-19 (74 days before the snapshot).

GitHub

No GitHub repository linked.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.1026.05+2026-08-19
History across monthly snapshots

Loading…

Similar addons

Text Tools in Right-Click Menu

Adds a Text Tools menu to the editor's right-click menu with formatting, insertion, and editing commands, plus configurable quick items, user words, and optional reviewer support.

formatting

12 votes 55% approval πŸ‘ 10 Β· πŸ‘Ž 2 ⭐ 3 Anki 25.09.2~ Updated 2026-04-03
Editor scale images

Enables resizing images by clicking and dragging their lower-right corner in Anki's desktop editor, preserving aspect ratio; double-clicking clears scaling, with a configurable selection border.

formattingobsoletemobile-compatible

5 votes 57% approval πŸ‘ 5 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.49~ Updated 2022-02-11

Description

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.