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.