How to make TinyMCE work inside an UpdatePanel?

前端 未结 12 926
别跟我提以往
别跟我提以往 2021-02-07 13:28

I\'m trying to do something that many people seem to have been able to do but which I am unable to implement any solution. The TinyMCE control works pretty well in an asp.net fo

12条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 13:47

    You have to call the initializing method of the TinyMCE whenever the update panel is refreshed.

    For this, you have either to call this method (tinyMCE.init) from a RegisterStartupScript method, or to create a page load javascript function in the head section of the page like this:

    function pageLoad() {
       tinyMCE.init();
    }
    

    This function will be executed each time the update panel is refreshed.

提交回复
热议问题