go-vikunja / vikunja

Mirror of vikunja from https://code.vikunja.io/api
GNU Affero General Public License v3.0
758 stars 55 forks source link

Error when paste text to task - error reading 'nodeSize' #259

Closed Marenostrum81 closed 1 month ago

Marenostrum81 commented 2 months ago

Description

Description

When I try to paste text with external links, nothing is pasted. If I paste without formatting (ctrl+shift+V), then it does stick, but it doesn't look good because it loses the links and the highlighted text. When checking the console, the error 'Cannot read properties of undefined (reading 'nodeSize')' index.js 87

After analyzing why some links seem to work and others, I find that if the text includes a link like this, it doesn't work: <a class="external" href="https://www.europeana.eu/es/search?page=1&amp;view=grid&amp;query=women%20in%20trade%20union%201850" target="_blank"><span>segundo enlace.</span><span class="external_link_icon" role="presentation"><span class="screenreader-only">Links to an external site.</span></span></a>

But with this one, it works: `Europeana

Links to an external site.`

Same browser, same extensions, but in self-host I'm having this issue, and the demo works correctly.

Vikunja Version

0.23.0

Browser and version

Edge, version 124.0.2478.51 (Compilación oficial) (64 bits)

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

image

kolaente commented 2 months ago

If it works in the demo, it is likely already fixed (the demo always runs the latest commit from the main branch). Can you reproduce this on your installation with an unstable build? (Make a backup first, rollback is not supported)

Marenostrum81 commented 1 month ago

I can confirm the unstable version (version 9 may) fixes this issue.