Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting disappears when clicking on another input field. #29

Open
epistularum opened this issue May 18, 2022 · 3 comments · May be fixed by #34
Open

Formatting disappears when clicking on another input field. #29

epistularum opened this issue May 18, 2022 · 3 comments · May be fixed by #34

Comments

@epistularum
Copy link

epistularum commented May 18, 2022

Steps:

  1. Select text
  2. Press the cloze button (or use the shortcut key)
  3. Click on another input field

Result:

Generated formatting disappears.

This only happens when the last editing done on the field is generated via the cloze anything addon. The formatting doesn't disappear if you, for instance, add a character before switching field or if you write the formatting yourself.

Video examples:

Same steps as above:
https://0x0.st/oa8y.webm

Same steps as above, but adding a character before clicking on another input field:
https://0x0.st/oa8t.webm

Fully manual:
https://0x0.st/oa8v.webm

Debug log
Anki 2.1.51 (cf78a555) Python 3.10.4 Qt 6.3.0 PyQt 6.3.0
Platform: Linux
Flags: frz=False ao=True sv=2
Add-ons, last update check: 2022-05-14 01:48:17


===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AJT Browser Play Button ['182970692', 2022-04-27T15:51, 'None', '']
AnkiConnect ['2055492159', 2022-04-28T12:05, 'None', '']
Cloze Anything ['330680661', 2021-12-09T16:34, 'None', '']
Kanji Grid ['909972618', 2019-01-10T07:40, 'None', '']
Review Heatmap ['review_heatmap', 2020-04-30T22:23, 'None', '']
True Retention ['613684242', 2017-11-20T05:43, 'None', '']

===IDs of active AnkiWeb add-ons===
182970692 2055492159 330680661 613684242 909972618

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
@Futats
Copy link

Futats commented Jul 25, 2022

+1 for this. I also experience this on:

Anki Version ⁨2.1.54 (b6a7760c)⁩
Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
Windows 10

This no longer happens if I disable the visual editor and edit in the HTML editor, but then again, the keyboard shortcut doesn't work there, so that also breaks my workflow. :( This issue doesn't occur in Anki 2.1.49, so I for now I've rolled back to that.

@Naitreey
Copy link

This also happens for me. Manually entering ((c1::text)) chunk still works though.

@rwmpelstilzchen
Copy link
Contributor

+1

I work around the problem by hitting space and then backspace afterwards…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants