diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-07-07 20:00:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 20:00:30 -0400 |
commit | 315dc425e489dc96c2f2d4e13b500105d724ec52 (patch) | |
tree | 380f1f793b158d5a7652dd08fa0cd10d7378679f /ext/js/templates | |
parent | 9935e154f1d2d9881c636b9a93f9d31b04621287 (diff) |
Anki card selected text (#1809)
* Add support for injecting the text selection into Anki cards
* Add selection-text
* Upgrade to add {selection-text}
* Update descriptions
* Update test data
Diffstat (limited to 'ext/js/templates')
-rw-r--r-- | ext/js/templates/template-renderer-media-provider.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/js/templates/template-renderer-media-provider.js b/ext/js/templates/template-renderer-media-provider.js index db4a6d18..4fd40c67 100644 --- a/ext/js/templates/template-renderer-media-provider.js +++ b/ext/js/templates/template-renderer-media-provider.js @@ -78,6 +78,7 @@ class TemplateRendererMediaProvider { case 'screenshot': return this._getSimpleMediaData(media, 'screenshot'); case 'clipboardImage': return this._getSimpleMediaData(media, 'clipboardImage'); case 'clipboardText': return this._getSimpleMediaData(media, 'clipboardText'); + case 'selectionText': return this._getSimpleMediaData(media, 'selectionText'); case 'dictionaryMedia': return this._getDictionaryMedia(media, args[1], namedArgs); default: return null; } |