Anki/rslib/src/notetype
Damien Elmes f6486da233
Various tweaks to I/O code (#2478)
* Allow user to select I/O notetype instead of enforcing a specific name

* Display a clearer error when I/O note is missing an image

Opening the card layout screen from "manage notetypes" was showing an
error about the Anki version being too old.

Replacement error is not currently translatable.

* Preserve existing notetype when adding I/O notetype

* Add a 'from clipboard' string

The intention is to use this in the future to allow an image occlusion
to be created from an image on the clipboard.

* Tweak I/O init

- Use union type instead of multiple nullable values
- Pass the notetype id in to initialization

* Fix image insertion in I/O note

- The regex expected double quotes, and we were using single ones
- Image tags don't need to be closed

* Use more consistent naming in image_occlusion.proto

* Tweaks to default I/O notetype

- Show the header on the front side as well (I presume this is what
users expect; if not am happy to revert)
- Don't show comments on card (again, I presume users expect to use
this field to add notes that aren't displayed during review, as they
can use back extra for that)

* Fix sticky footer missing background

Caused by earlier CSS refactoring
2023-04-19 15:30:18 +10:00
..
cardgen.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
checks.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
cloze_styling.css Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
emptycards.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
fields.rs Add option to exclude fields from search (#2394) 2023-03-20 07:46:03 +10:00
header.tex move latex header and styling into separate files 2020-05-12 21:13:33 +10:00
mod.rs Add ability to restore a notetype to its original configuration (#2472) 2023-04-18 14:07:51 +10:00
notetypechange.rs Fix invalid ids on db check (#2445) 2023-03-19 10:58:35 +10:00
render.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
restore.rs Add ability to restore a notetype to its original configuration (#2472) 2023-04-18 14:07:51 +10:00
schema11.rs Add ability to restore a notetype to its original configuration (#2472) 2023-04-18 14:07:51 +10:00
schemachange.rs Fix invalid ids on db check (#2445) 2023-03-19 10:58:35 +10:00
stock.rs Various tweaks to I/O code (#2478) 2023-04-19 15:30:18 +10:00
styling.css Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
templates.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00
undo.rs Refactor error handling (#2136) 2022-10-21 18:02:12 +10:00