Skip to content

Improve compatibility with Anki 2.1.41+#179

Open
bentyeh wants to merge 1 commit intoglutanimate:masterfrom
bentyeh:patch-1
Open

Improve compatibility with Anki 2.1.41+#179
bentyeh wants to merge 1 commit intoglutanimate:masterfrom
bentyeh:patch-1

Conversation

@bentyeh
Copy link
Copy Markdown

@bentyeh bentyeh commented Jun 30, 2021

Fixes RL button to correctly insert class="shuffle" into <ul> element, thereby allowing shuffling to work correctly in Anki 2.1.41+, which requires using .getSelection() on a field instead of window.

This pull request does NOT fix the yellow background highlight for random lists - i.e., shuffled lists are still NOT highlighted as intended.

Fixes RL button to correctly insert `class="shuffle"` into `<ul>` element, thereby allowing shuffling to work correctly in Anki 2.1.41+.
- [Anki 2.1.41](https://forums.ankiweb.net/t/add-on-porting-notes-for-anki-2-1-41/7390) requires using `.getSelection()` on a field instead of `window`.

This pull request does NOT fix the yellow background highlight for random lists - i.e., shuffled lists are still NOT highlighted as intended.
@puppy004
Copy link
Copy Markdown

puppy004 commented Apr 10, 2022

Do you know how to fix this "This pull request does NOT fix the yellow background highlight for random lists"?

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 this pull request may close these issues.

2 participants