TinyMCE & Fancybox - editor won't work on second view

后端 未结 6 597
夕颜
夕颜 2020-12-03 16:36

I\'ve added TinyMCE to my project, and am using it on a text area which pops up in a fancybox. The first time I action it, it works fine, but if I then close it and try to

6条回答
  •  青春惊慌失措
    2020-12-03 16:42

    this work for me for fancybox 2.1.5 I guess

    $(".fancybox").fancybox({
        afterLoad: function () {
            tinymce.remove();
            setTimeout(function(){tinymce.init({selector:'textarea'});},500);
        }
    });
    

提交回复
热议问题