Editing text with custom colour, results in "font color" text appearing

Hello! Sorry if this is a duplicate (and for the confusing title)!

The Bug
When multiple words within a text block are selected, the first of which has any type of custom colour, replacing this text (via immediately typing, rather than deleting the selection and then typing) will result in the following text appearing (with the respective colour):
<font color="#000000">


qX3ImN3H7p

To Reproduce
Steps to reproduce the behavior:

  1. Open a block
  2. Create a line of text
  3. Style any word except the last, with a custom colour
  4. Select any amount of words, but ensure the first word(s) selected is that with the custom colour
  5. Type in new text (please do not first delete the text)

Expected Behavior
The text is replaced, keeping the colour/attributes of the first-selected word.

System Information
OS: Microsoft Windows 10 Home (Version 10.0.19042)
Anytype Version 0.21.9

Additional Context
This bug only occurs when the first selected word has styling with a custom colour (background, code, etc.)
When text is pasted (rather than typed), this bug does not occur.

Thank you for reading, hope you have an amazing day!

@sahilstudio Thank you for your notice! It was fixed, see in the next release

1 Like