https://bugs.documentfoundation.org/show_bug.cgi?id=159507

            Bug ID: 159507
           Summary: Calc editeng HTML paste: fragments are not supported
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Copy a link from a web browser into Calc while cell edit is active, the
clipboard can have this HTML markup:

<meta http-equiv="content-type" content="text/html; charset=utf-8"><a
class="theme markdown__link" href="https://www.example.com/"; rel="noreferrer"
target="_blank"><span>https://www.example.com/</span></a>

If RTF is also on the clipboard then we prefer it, but in case that doesn't
happen (e.g. mattermost chat app in firefox), then the above results in a
non-working paste, because it lacks the expected HTML header.

The HTML paste into Calc's editeng was completely missing previously, but does
work for the with-header case since ce53519f025158f8f64a4e8603c8c6e0dc35473a
(cool#8023 editeng: support HTML paste, 2024-01-24).

Steps to reproduce:

1) copy to above content to the clipboard with the text/html mime type (e.g.
copy in a web browser); use a clipboard manager like copyq on Linux to verify
that the clipboard has the above content for text/html and RTF is not a type on
the clipboard.
2) Start Calc, enter cell edit mode
3) Press Ctrl-V

Expected result: the example.com link appears in the cell text

Actual result: nothing happens (no error message)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to