The "Text color" button in editor seems no effect on table elements

OS: macOS 14.4
Anki: (anki-24.04-mac-apple-qt6.dmg)
Version ⁨24.04 (d516a9d9)⁩
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1

Reproduce:

In a text filed, input the following HTML code under the code mode:

<table><tbody><tr><td>A</td></tr>
</tbody></table>

Then go back to the preview mode, select the text “A” and click the “Text color” button to change it to red.

Expect: The text “A” should be changed to red.

Result: The text “A” was in red when focusing. However when unfocused, it went back to black. And the code was:

<span style="color: rgb(255, 0, 0);"></span><table><tbody><tr><td>A</td></tr>
</tbody></table>
2 Likes

Reproduced on Windows 11
Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1

Interestingly, if you select less than an entire cell, the color applies just fine.

If you select the entire cell, as naminokoe said, the color appears to apply, but the span-tag is never in the right place, so it loses the color as soon as you click something else.

1 Like

Logged on The “Text color” button in editor seems no effect on table elements · Issue #3073 · ankitects/anki · GitHub

2 Likes

Yes. Annoying!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.