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
I’m testing on Anki 25.01 beta 1, Windows 11. I recall this issue occurring in previous versions as well.
If the entire content of a field is wrapped in a <div> with one or more attributes, deleting the field's content (without using the HTML editor) leaves the <div> intact.
For example, if the field content is: <div class="myClass">foo</div>, deleting it results in <div class="myClass"></div>.
This behavior also occurs when such a <div> is nested within other tags, such as <span><b><div class="myClass">foo</div></b></span>. After deleting the field content, it becomes <span><b><div class="myClass"></div></b></span>.
However, the issue does not occur if there is any content outside the <div>. For example, when testing with this HTML: abc<div class="myClass">foo</div>, the problem does not happen.
The text was updated successfully, but these errors were encountered:
I’m testing on Anki 25.01 beta 1, Windows 11. I recall this issue occurring in previous versions as well.
If the entire content of a field is wrapped in a
<div>
with one or more attributes, deleting the field's content (without using the HTML editor) leaves the<div>
intact.For example, if the field content is:
<div class="myClass">foo</div>
, deleting it results in<div class="myClass"></div>
.This behavior also occurs when such a
<div>
is nested within other tags, such as<span><b><div class="myClass">foo</div></b></span>
. After deleting the field content, it becomes<span><b><div class="myClass"></div></b></span>
.However, the issue does not occur if there is any content outside the
<div>
. For example, when testing with this HTML:abc<div class="myClass">foo</div>
, the problem does not happen.The text was updated successfully, but these errors were encountered: