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
  • 221 posts

Posted 18 August 2020 - 09:09 PM #1

Hi,

 

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

      <td>
        {include file="common/popupbox.tpl"
        id="edit-kb-question-{$product_question->question_id}"
        act="edit"
        link_text=$product_question->question
        href="bfa_knowledgebase.edit.question&question_id={$product_question->question_id}"}
      </td>

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?

 

Thanks..