Tinymce: removing and adding tinyMce control not working in firefox

Created on 13 Apr 2016  路  2Comments  路  Source: tinymce/tinymce

I am removing and adding tinyMce control as per my requirement(on click of a button). Below code is not working in firefox. It is working in chrome and IE

tinymce.execCommand('mceRemoveEditor', false, 'strTextContent');

tinymce.execCommand('mceAddEditor', false, 'strTextContent');

I am using tinymce 4.3.8

firefox bug

Most helpful comment

I am hiding the div before calling tinymce.execCommand('mceRemoveEditor', false, 'strTextContent');

For some reason this is throwing NS_UNEXPECTED_ERROR in firefox.

Solved this by calling mceRemoveEditor before hiding my div. This solved problen

All 2 comments

I can't reproduce it here:
http://fiddle.tinymce.com/Mufaab

Need steps to reproduce this one thanks.

I am hiding the div before calling tinymce.execCommand('mceRemoveEditor', false, 'strTextContent');

For some reason this is throwing NS_UNEXPECTED_ERROR in firefox.

Solved this by calling mceRemoveEditor before hiding my div. This solved problen

Was this page helpful?
0 / 5 - 0 ratings