DonOfDen
DonOfDen

Reputation: 4108

tinyMCE not rendering to popup

I am using tinyMCE editor inside a POPUP window the popup was build by ajaxcall. The editor rendered correctly only first time when the popup is called by ajaxcall. After closing the popup and again when I open the popup the editor is not rendering it just shows the textarea with HTML code? Is there any way solve this issue.

tinyMCE 4.1.3

No Errors are showing!

Upvotes: 1

Views: 2390

Answers (1)

DonOfDen
DonOfDen

Reputation: 4108

I found that the issue was caused by existing instance still being active, so I used the following code before initiating the tinyMCE:

// Remove existing instances of tinyMCE.
tinyMCE.remove();   

Then:

tinyMCE.init()

Issue fixed.

Upvotes: 5

Related Questions