TinyMCE with AJAX (Update Panel) never has a value

后端 未结 5 558
-上瘾入骨i
-上瘾入骨i 2021-01-11 14:37

I wanted to use a Rich Text Editor for a text area inside an update panel.

I found this post: http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-ric

5条回答
  •  失恋的感觉
    2021-01-11 15:05

    One thing that I ran into when putting TinyMCE in an update panel was that I had to do all sorts of tricks to make it work right. Keep in mind how the update panel works, when you want to refresh it, it completely replaces the DOM inside of it, including the TinyMCE.

    The workaround that I used was to remove the TinyMCE from the update panel and wrap anything else that needed to dynamically refresh in an update panel. I would then add data to TinyMCE via the javascript API it provides if I needed the TinyMCE content to be dynamic.

提交回复
热议问题