Describe the bug
After making an inline link to a URL, if the text style of the block is changed, the placeholder text for the inline text is changed by one character
To Reproduce
Steps to reproduce the behavior:
-
- Go to any page
-
- Type few words
-
- Select a word in the middle and change it as an inline link
-
- Change the text style of the entire block
Expected behavior
The text linked with the URL should not be changed when the block’s text style is changed
System Information:
- OS: Fedora 34
- Anytype Version: 0.20.9
Additional context
The following is a block with an inline link. The word “is a link” is linked with a URL
This is how the linked text is changed after the style is changed to highlighted using the / menu. In the image linked, you can see that the linked text is changed from “is a linked” to “s a linked.”. i.e, the link is moved one char to the right
I can reproduce this fairly often when the text-style is changed using the / menu, but when using the dotted block menu to change the style, this does not happen