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

spellcheck markup is destroying internal tags

    XMLWordPrintable

Details

    • High
    • SpellCheck: Multi-whitespaces are now respected while applying spellcheck styles

    Description

      problem

      The spellcheck markup in the editor is destroying / duplicating wrongly the internal tag markup. and is creating a JS error on mouse over.

      JS error

      See https://app.therootcause.io/#marc-mittag/translate5/errors/cd4a61ff4749b14006cb8ad243a527efd369e899

      Uncaught TypeError: Cannot read properties of null (reading 'getAttribute')
      at g.handleCollectedTooltip (ToolTip.js?_dc=5.7.8:119:44)
      at g.onBeforeShow (ToolTip.js?_dc=5.7.8:66:25)
      at F.fire (ext-all.js:22:146861)
      at g.doFireEvent (ext-all.js:22:154371)
      at g.doFireEvent (ext-all.js:22:520847)
      at a.doFireEvent (ext-all.js:22:448251)
      at g.fireEventArgs (ext-all.js:22:153235)
      at g.fireEvent (ext-all.js:22:152964)
      at g.show (ext-all.js:22:536887)
      at g.show (ext-all.js:22:1607671)
       

      content screenshot

      markup screenshot

      reproduction

      For reproduction import file ./application/modules/editor/testcases/editorAPI/XlfImportTest/testfiles/workfiles/02-preserveWhitespace.xlf

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: