You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tldr: Fixing this is on the todo list but it's low priority since it took about two years until I got the first complaint and it's likely not a quick fix (but I probably need to switch to js).
In Anki 2.0 if you had
<i>a b c</i>
and then select the b and set "test" as the hyperlink target you get:
<i>a <a href="test">b</a> c</i>
In Anki 2.1.0 (or .29) if you had
<i>a b c</i>
and then select the b and set "test" as the hyperlink target you get:
<i>a </i><a href="test">b</a><i> c</i>
Note to self: The code for inserting hyperlinks has been unchanged between the pfp for 2.0 and my version for 2.1:
Thanks for the fast response and the detailed writeup! I appreciate it.
I just checked whether this addon had the same problem. It does not. (No surprise, really, since it uses a different editor: TinyMCE). We could check how links are inserted there for inspiration.
I just added a small workaround. A full solution like 1200 lines of code from the unminified "link" plugin from TinyMCE or even a proper solution is too time-consuming for me.
If this doesn't work let me know so that I can revert it. If you want more: pull requests are welcome.
tldr: Fixing this is on the todo list but it's low priority since it took about two years until I got the first complaint and it's likely not a quick fix (but I probably need to switch to js).
In Anki 2.0 if you had
and then select the b and set "test" as the hyperlink target you get:
In Anki 2.1.0 (or .29) if you had
and then select the b and set "test" as the hyperlink target you get:
Note to self: The code for inserting hyperlinks has been unchanged between the pfp for 2.0 and my version for 2.1:
In 2.0 it's
In 2.1 I use
The text was updated successfully, but these errors were encountered: