Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Wysiwyg In Popup Rate Topic   - - - - -

  • natewallis
  • Senior Member
  • Members
  • Join Date: 11-Jan 13
  • 227 posts

Posted 18 August 2020 - 09:09 PM #1



I am using the following code to create a dialog box:

        {include file="common/popupbox.tpl"

Which works fine.  The content of my popup, contains the following WYSIWYG textarea:

        <textarea id="answer" name="question[answer]" cols="55" rows="2" class="cm-wysiwyg input-large">{$question->answer}</textarea>

Which again, works fine. 


However if close the dialog and reopen it, it regenerates the wysiwyg field and I end up with 2 redactor inputs on my dialog.  Close it again and reopen it and I have 3 redactor inputs. Etc. Etc. 


Any ideas on how to stop this from happening?