Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17740

Fix list widget with tiny mce editor in toggleable form

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.8.0-HF35
    • Fix Version/s: 5.8.0-HF36
    • Component/s: Layouts & Widgets
    • Tags:
    • Sprint:
      nxNag Sprint 7.4.3

      Description

      Install attached studio project.

      Step to reproduce:

      • Create a SUPNXP-14273 document
      • During the creation , fill at least one entry of the multi complex Complex field.
      • Go to the the_tab and click Edit the toggleable form.
      • Add an entry to Complexsimpletext field. You can see that at this point that the tinymce editor(s) of the he multi complex Complex is not reinitialized correctly.
      • Save

      It results in a javascript error:

      Cannot read property 'save' of undefined
      

      thrown by

      initTinyMCE('640', '400', 'nxl_the_tab_tabLayout:nxw_sub0_toggledForm:nxl_the_form_layout_edit:nxw_complex:nxw_complex_input:0:nxw_sub0_1', 'nuxeolink,fullscreen,nuxeoimageupload', 'en', 'nuxeolink,fullscreen,nuxeoimageupload'); A4J.AJAX.AddListener({onbeforeajax: function() {tinyMCE.getInstanceById('nxl_the_tab_tabLayout:nxw_sub0_toggledForm:nxl_the_form_layout_edit:nxw_complex:nxw_complex_input:0:nxw_sub0_1').save();}});
      

      Note it only fails in a toggleable form. It works in the Edit tab.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: