aboutsummaryrefslogtreecommitdiff
path: root/ext/settings.html
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-05-29 21:24:41 -0400
committerGitHub <noreply@github.com>2022-05-29 21:24:41 -0400
commit331a2e62941e04a4d50a21faefed663a92ddc00a (patch)
tree1212a1e7cd57ea2331fab2101afdc325cb3a4766 /ext/settings.html
parentf3024c50186344aa6a6b09500ea02540463ce5c9 (diff)
Add support for guiEditNote to view notes (#2143)
* Add AnkiConnect.guiEditNote * Update _onApiNoteView to first try guiEditNote * Add setting * Update noteView API * Use setting * Return which mode was used * Update DisplayGenerator * Handle errors in DisplayAnki * Update docs * Add isErrorUnsupportedAction function * Add an allowFallback option to noteView * Disambiguate * Simplify now that preferredMode isn't used * Update settings info * Implement test buttons * Update styles * Update status visibility * Wrap layout * Update description * Update date
Diffstat (limited to 'ext/settings.html')
-rw-r--r--ext/settings.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/ext/settings.html b/ext/settings.html
index ac296b8d..1ad0c37d 100644
--- a/ext/settings.html
+++ b/ext/settings.html
@@ -1767,6 +1767,39 @@
<div class="settings-item advanced-only">
<div class="settings-item-inner">
<div class="settings-item-left">
+ <div class="settings-item-label">Note viewer window</div>
+ <div class="settings-item-description">
+ Clicking the <em>View added note</em> button shows this window.
+ <a tabindex="0" class="more-toggle more-only" data-parent-distance="4">More&hellip;</a>
+ </div>
+ </div>
+ <div class="settings-item-right">
+ <select data-setting="anki.noteGuiMode">
+ <option value="browse">Card browser</option>
+ <option value="edit">Note editor</option>
+ </select>
+ </div>
+ </div>
+ <div class="settings-item-children more" hidden>
+ <p>
+ AnkiConnect releases after around 2022-05-29 support a new note editor window
+ which can be shown when clicking the <em>View added note</em> button.
+ This can be tested using the buttons below.
+ If an error occurs, Anki and/or AnkiConnect may need to be updated.
+ </p>
+ <div class="test-anki-note-viewer-container">
+ <button class="test-anki-note-viewer-button" data-mode="browse">Test <em>Card browser</em></button>
+ <button class="test-anki-note-viewer-button" data-mode="edit">Test <em>Note editor</em></button>
+ <div class="test-anki-note-viewer-results" id="test-anki-note-viewer-results" hidden></div>
+ </div>
+ <p class="margin-above">
+ <a tabindex="0" class="more-toggle" data-parent-distance="3">Less&hellip;</a>
+ </p>
+ </div>
+ </div>
+ <div class="settings-item advanced-only">
+ <div class="settings-item-inner">
+ <div class="settings-item-left">
<div class="settings-item-label">
Show card tags
<a tabindex="0" class="more-toggle more-only" data-parent-distance="4">(?)</a>