Formatting issues when pasting text into title of Toggle

Description of Bug:

Normal text cannot be pasted into the Title of a toggle. Attempting to do so will result in the entire Toggle being discarded.

When the title of one Toggle is pasted into that of another, the Toggle icon will be discarded ā€” though the formatting will remain. Re-applying the Toggle list style (via either the popup style menu or / command) will allow the icon to re-appear.

To Reproduce:

    1. Open an object
    1. Create a Toggle
    1. Issue 1: Copy normal text, and attempt to paste it into the title of the created Toggle
    1. Issue 2: Copy text from another Toggle, and paste it into the title of the created Toggle.

System Information:

ā€¢ Windows 10 Home, version 10.0.19042 Build 19042

ā€¢ Anytype version 0.19.0

Additional Context/Information:

Issue #1 (normal text) does not occur when you paste without formatting (CTRL + SHIFT + V instead of CTRL + V)

Issue #2 (Toggle text) does not occur if the previous title has been erased to zero characters

Video showcasing the bug(s): https://streamable.com/qmva1v

Thank you, hope you have an amazing day!

1 Like

Iā€™m also experiencing Issues here.

  1. Pasting as headline formatted font into the title removes the toggle function.

  1. Pasting Multiline content into the toggle title, discards the toggle and its content
1 Like

This is only the case if you paste over the entire toggle name (both Android 0.6.1 and Windows 0.24.0). You can replace any part of the toggle name fine if you do not select the whole name. Try adding a space at the beginning or end of the toggle name, and then paste over the toggle name without selecting that space.

1 Like

This was mentioned as fixed in the release notes of 0.24.0

1 Like