开发者

django : tinymce editor not loaded on ajax load

I am using django-tinymce in my website. Tinymce editor of the form appear on normal page load, but its tinymce editor doesn't loads when form 开发者_StackOverflow中文版section is loaded on ajax load(using jquery load). In firebug it doesn't gives any error. What may be the reasons?

Any help would be appreciated.. Thanks


One reason could be that the former tinymce instance has not been shut down correctly. Use this before removing parts of the Dom

tinyMCE.execCommand('mceRemoveControl', false, editor_id);

and reinitialize it afterwards if needed

tinyMCE.execCommand('mceAddControl', false, editor_id);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜