Uploaded image for project: '{RETIRED} CKEditor Integration'
  1. {RETIRED} CKEditor Integration
  2. CKEDITOR-235

CKEditor HTML converter executed with incorrect language

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.26
    • 1.17, 1.25
    • None
    • None
    • High
    • Easy
    • N/A
    • N/A

    Description

      The issue appears when editing a given translation of a page. if during the edition you open a new browser tab to edit the same page in different translation and you come back to the initial page to add or edit a macro the CKEditor.HTMLConverter is executed using the language of the second translation (new tab) instead of the current one.

      In order to reproduce follow these steps: 

      • XWiki version: 9.8.1
      • Create a page Sandbox.Page (default language: '', translations : EN, FR)
      • Set the EN translation content with:
        English content
        
      • Set the FR translation content with:
        French content
        
      • Create a page Sandbox.TestCKEditor (default language: '', translations : EN, FR)
        • Set the FR translation of the page with
          {{velocity}}
          #set ($reference = $services.model.createDocumentReference("xwiki", ["Sandbox"], "Page"))
          #set ($trReference = $services.model.createDocumentReference($reference, $xcontext.locale))
          #set ($trDoc = $xwiki.getDocument($trReference))
          $trDoc.content
          {{/velocity}}
          
      • Close all created pages
      • Edit the FR translation of the page Sandbox.TestCKEditor, normally you should see "French content" on the editor.
      • In a new tab edit the EN translation of the page Sandbox.TestCKEditor
      • Go back to the FR translation and insert an info macro with the text : 'test', click on send button
      • See the content after the wysiwyg refresh.

      Expected behavior:
      The content displayed is the content of the FR translation of the page Sandbox.Page followed by info macro with 'test'.

      Current behavior:
      The content displayed is the content of the EN translation of the page Sandbox.Page followed by the info macro with 'test'.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mouhb Mohamed Boussaa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: