Skip to content

Spurious text included with copied previews #5263

@wujastyk

Description

@wujastyk

JabRef 5.0-dev--snapshot--2019-08-30--master--66b7fe3af
Linux 5.0.0-25-generic amd64
Java 11.0.4

  1. Open the entry editor
  2. select the Required fields tab
  3. A right column displays the formatted entry (attached image)

Screenshot from 2019-08-30 14-17-24

  1. right-click the preview and select "copy".
  2. The result in the clipboard is this:
      function highlight(text) {
           var innertxt = document.body.innerText;
           var response = innertxt.replace(new RegExp(text, 'gi'), str => `<span style='background-color:red'>${str}</span>`);
           document.body.innerHTML = response;
       }
   Acharya, D., 2006. Vācaspatimiśra’s Tattvasamīkṣā. the Earliest Commentary on Mandanamiśra’s Brahmasiddhi. Critically Edited with an Introduction and Critical Notes. Nepal Research Centre Publications. Stuttgart: Franz Steiner Verlag.

That spurious "function highlight(text){...} " gets included with all copies.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions