markdown-input icon indicating copy to clipboard operation
markdown-input copied to clipboard

Support for version 25

Open tpilewicz opened this issue 8 months ago • 3 comments

After installing Version ⁨25.02.5, the addon doesn't work anymore. The markdown icon is not shown anymore

Image

Would love to help but I don't really know how to debug, pointers appreciated!

tpilewicz avatar May 30 '25 07:05 tpilewicz

When editing a card, error from the logs is:

JS error /_addons/904999275/field_input.js:69575 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'MDI')

Which points to function field_input.update_all (link). I suppose the _config is undefined because function init is not called (or not called before update_all).

EDIT: ok the issue is that CSP blocks the execution of the inline script running init

tpilewicz avatar Jun 01 '25 20:06 tpilewicz

@triaeiou @d-k-bo Could you please merge in this pull request? I really like the add-on, and it's blocking me from updating Anki.

BYT3M3 avatar Jul 29 '25 15:07 BYT3M3

@BYT3M3 FYI I uploaded my patched version as a separate add-on here: https://ankiweb.net/shared/info/2060330806

If @triaeiou ends up merging / fixing another way, I'll delete it, but in the meantime this can be used as a v25-compatible version :)

tpilewicz avatar Aug 09 '25 13:08 tpilewicz