Skip to content

Copy publication string is broken #3960

@tpoisseau

Description

@tpoisseau

From Ranges / Multiplet analysis

Reproduction steps:

  • Go to https://dev.nmrium.org/#/SamplesDashboard/jro8bswrkba/Viewdatacytisinedatacytisine1Hjson
  • Click on "Range picking and multiplet analysis" button in left toolbar
  • Click on "Auto ranges picking" button in topbar
  • Click on "Publication string" button in "Ranges / Multiplet analysis" panel
  • Click on "Configure"
  • In the opened dialog, click on the clipboard button (in preview area, it float at right)
  • Try to paste it in a plain text file, textarea. It paste nothing (and if you had something in your clipboard before, it's gone).

Supposition:

Publication string is generated with rangesToACS from nmr-processing, it returns a string compatible with html for formatting (ex: <sup> node). It may interfere with clipboard api, maybe it needs to be copy with a <span> parent node.


I forgot to mention, copy actions seems broken (at least on zen browser). But it was broken before my refactor during dev.

I will investigate from main branch before we merge and raise an issue if needed.

Originally posted by @tpoisseau in #3958 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions