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

Pressing "tab" in search and replace produces an JS error

    XMLWordPrintable

Details

    • High

    Description

      problem

      When using search and replace in the editor, and trying to jump from search to replace field with key "tab" inserts either a "tab" into the editor (if opened a segment) or produces a JS error:

      Uncaught TypeError: Cannot read property 'get' of null
      at constructor.getData (HtmlEditor.js?_dc=1561370555444:477)
      at HTMLDivElement.<anonymous> (HtmlEditor.js?_dc=1561370555444:411)
      at Object.each (ext-all-debug.js:3111)
      at constructor.replaceTagToImage (HtmlEditor.js?_dc=1561370555444:366)
      at constructor.markup (HtmlEditor.js?_dc=1561370555444:352)
      at constructor.insertMarkup (HtmlEditor.js?_dc=1561370555444:268)
      at constructor.insertWhitespaceInEditor (HtmlEditor.js?_dc=1561370555444:590)
      at constructor.insertWhitespace (Editor.js?_dc=1561370551642:1239)
      at constructor.insertWhitespaceTab (Editor.js?_dc=1561370551642:1224)
      at constructor.confObj.fn (Editor.js?_dc=1561370551642:415)

      solution

      The tab key should only be processed in context of the editor, not of the whole application.

      Attachments

        Activity

          People

            tlauria Thomas Lauria
            tlauria Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: