Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-1556

pressing ctrl-c in language resource panel produces an JS error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • translate5 - 3.0.5
    • None
    • None

    Description

      problem

      Pressing ctrl-c to copy content can produce the following JS errors, depending where the cursor is:

      • node.childNodes is undefined
      • Uncaught TypeError: Cannot read property 'length' of undefined

      Both in rangy lib.

      reproduction

      See attached screenshots.

      solution

      If ctrl-c is pressed and cursor is in or cell is selected in:

      • language resource match panel: print a message to double click on the segment to overtake it
      • language resource concordance panel: copy content of selected cell
      • selection is empty in an input field or on a extjs control item (row head): copy nothing / do nothing

      Attachments

        Activity

          People

            Ines-Paul Ines-Paul Baumann (Inactive)
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: