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

Editor can not be initialized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • None
    • Editor general

      Problem

      The problem appears when double click on the segments editor using track changes and language tool plugin.

      Stack trace:

      ext-all-debug.js:194368 Uncaught TypeError: Cannot read property 'match' of null
      at constructor.syncValue (ext-all-debug.js:194368)
      at constructor.getValue (ext-all-debug.js:194397)
      at constructor.checkChange (ext-all-debug.js:169403)
      at constructor.setValue (ext-all-debug.js:169291)
      at constructor.setValue (ext-all-debug.js:194327)
      at constructor.setValueAndMarkup (HtmlEditor.js?_dc=3.2.7:200)
      at constructor.loadRecord (RowEditorColumnParts.js?_dc=3.2.7:315)
      at constructor.startEdit (RowEditor.js?_dc=3.2.7:378)
      at constructor.callParent (ext-all-debug.js:12493)
      at constructor.startEdit (RowEditorColumnParts.js?_dc=3.2.7:272)

       

      Additional Info:

      Bug editor body:

      <body id="ext-element-46" spellcheck="false" class="show-trackchanges"><img src="data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" class="duplicatesavecheck" data-segmentid="2349" data-fieldname="targetEdit"></body>

      Working editor body:

      <body dir="ltr" style="direction: ltr; font-size: 12px; font-family: &quot;Open Sans&quot;, &quot;Helvetica Neue&quot;, helvetica, arial, verdana, sans-serif; background-image: none; background-repeat: repeat; background-color: rgb(255, 255, 255); color: rgb(0, 
      0, 0); background-attachment: fixed; cursor: text;" class="segment-size-4 show-trackchanges" id="ext-element-32" spellcheck="false"><img src="data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" class="duplicatesavecheck" data-segmentid="59838" data-fieldname="targetEdit"></body>

      The main problem is, the editor iframe is not initialized as it should. The iframe body does not have the right css classes and properties. The bug only appears with active language resource.

            aleksandar Aleksandar Mitrev
            aleksandar Aleksandar Mitrev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: