Commit Graph

17 Commits

Author SHA1 Message Date
Tobias Manske af073e0498
Build addon automatically on push
continuous-integration/drone/tag Build is passing Details
Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
2023-03-24 18:02:29 +01:00
Tobias Manske 4c966c1f5f
Format
Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
2023-03-24 18:02:28 +01:00
Tobias Manske 8e2815bc87
Add option to split side-by-side view. Also fixes split ratio handling
Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
2023-03-24 18:02:25 +01:00
Tobias Manske 58cd3cec42
Build changes for PR #7 2022-10-10 18:59:30 +02:00
Kevin Johansson a577e785be removed .DS_Store 2022-10-09 17:21:56 +02:00
Kevin Johansson ef413c20ee Implemented: config file, default open/close state, default split ratio, toolbar icon 2022-10-09 17:19:37 +02:00
Abdo 30394c02d5 Allow customizing styles via a custom class
Previewer-specific styles can now be specified in card templates by
targeting the "editor-preview" class. E.g:
```
.editor-preview {
  font-size: 12px;
}
```

Closes #1
2022-10-08 00:22:16 +03:00
Nick b41ac7ae1d Add light mode in addition to night mode
This utilizes Anki's theme_manager to determine if the default light version of a card should be used in the Editor Live Preview or if the night mode version should be used.
2022-08-03 19:14:08 +02:00
Tobias Manske f69933d7bd
Add version dependent selection of js for preview.
Anki 2.1.44 and prior used a different set of javascript in the
reviewer. There is no easy way to obtain those programmatically, so this
is a crude fix.

Fixes #2

Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
2021-10-09 06:01:05 +02:00
Tobias Manske 55ba8a273d
Update assets 2021-09-14 11:03:05 +02:00
Tobias Manske d4083a9cf0
Add resizing, make preview toggleable 2021-09-14 10:56:36 +02:00
Tobias Manske 6566c635e3
Name 2021-09-13 02:27:17 +02:00
Tobias Manske 30de24b4fc
Buildscript for ankiaddon 2021-09-13 02:25:49 +02:00
Tobias Manske 4ce1792e7a
Refactor and add assets 2021-09-13 02:17:48 +02:00
Tobias Manske 3a3187ea87
Allow for multiple editors to work in parallel 2021-09-10 09:18:46 +02:00
Tobias Manske 48bb1931a0
Cleanup 2021-09-09 18:37:52 +02:00
Tobias Manske 20609401d2
init 2021-09-09 17:58:14 +02:00