This function was initially creating an overlay appearing while I was modifying a card on anki.
For context, I started using the yomilens addon on anki which allows you to select some text and have a pop up show you the translation. The thing is, it only works on the "main" reviewer windows of the anki app. And what I want i to be able to select an english word and add many (if not all) of the ways to say it in korean in my card.
My first thought was to try to "force" the current card to keep showing me it's back with all the texts I need, but I couldn't.
Now I am trying to add the content of the two fields (id"korean" and id"SizeBump"=english) on the overlay, but being selectable to see if yomilens will react to it.
def pause_audio_for_edit(): /* Irrelevant I think global _audio_paused_for_edit, _pending_audio_tags print("[pause_audio] pause_audio_for_edit() appelée") _audio_paused_for_edit = True _pending_audio_tags = None _force_stop_current_audio()*/ _show_edit_pause_overlay() _EDIT_PAUSE_OVERLAY_JS…