Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-11912

Wysiwyg editor issue when displaying in XWiki modal popup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Blocker
    • None
    • None
    • None
    • None
    • Unknown
    • N/A
    • N/A

    Description

      I am working on an application that need to show forms in popups.
      But there is a problem when trying to initialize wysiwyg fields.
      After the content of the Modal popup is loaded successfully I excute the code bellow to intialize Wysiwyg fields

      require(['jquery'],function($){
          //Initialize textarea fields Wysiwyg
          Wysiwyg.onModuleLoad(function() {
          $("textarea").each(function(){
              var wysiwygConfig = {hookId:$(this).attr("id")};
              new WysiwygEditor(wysiwygConfig); 
           });
         });
      });
      

      It is working the first time when the modal popup is loaded, but if I close the popup and try to open it again the wysiwyg fields are not initialized.
      I only have simple textareas.

      Note that I do not have any special js error.

      I think that the wysiwig editors initialized the first time sould be released.
      I try to do this but the issue persists.

      Attachments

        Activity

          People

            calebjamesdelisle CalebJamesDeLisle
            mouhb Mohamed Boussaa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: