Skip to content

Dragging a URL from a browser pastes raw HTML instead of a proper link #10261

Description

@streetwriters

When I drag and drop a URL from my browser into the note editor, the URL is not pasted correctly. Instead of plain text or a clickable link, it pastes raw HTML code like this:

<a href="https://example.com/">Example Domain</a>

The pasted text is then recognized as a link, but incorrectly: when I hover over it, the link that appears is https://example.com/">Example instead of the correct https://example.com/. So the clickable link part is broken as well.

The app also occasionally freezes and crashes during the drag/drop, though not consistently. Since I'm on KDE Plasma (Wayland), this may be related to a desktop environment / Wayland drag-and-drop issue rather than Notesnook itself. I'm reporting it for completeness, but the parsing problem above is the main issue.

Steps to reproduce

  1. Open a note in Notesnook.
  2. Drag a URL from a browser tab/address bar into the note editor.
  3. Try to drop it inside the note.

What I expected to happen

The URL should paste as plain text or a proper clickable link.

What I have tried

  • Selecting only the domain part of the URL (e.g. example.com) without the https:// prefix sometimes works, but only when the URL is selected from the browser's address bar. Links inside a page cannot be selected this way, so this workaround is not usable for in-page URLs.
  • Using the full URL does not work consistently.

Environment

  • Notesnook version: 3.4.4-109e46b-desktop
  • OS: CachyOS (Arch Linux), kernel 7.1.8-1-cachyos, x86_64
  • Desktop environment: KDE Plasma, Wayland session
  • Browsers tried for drag/drop: Brave Origin, Zen Browser, Helium Browser, Mullvad Browser, LibreWolf

Device information:
App version: 3.4.4-109e46b-desktop
OS: Linux 64-bit
Browser: Electron 37.10.3
Plan: Pro (legacy)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions