开发者

HtmlBox JQuery plugin

开发者 https://www.devze.com 2022-12-22 10:19 出处:网络
I\'m using the HtmlBox 2.8 (http://remiya.com/cms/projects/jquery-plugins/htmlbox/) Turns the textarea to a richtext editor.

I'm using the HtmlBox 2.8 (http://remiya.com/cms/projects/jquery-plugins/htmlbox/)

Turns the textarea to a richtext editor.

when i change the value of the textarea, $('#Survey_Value').val(data.Value);

the text in the richeditor does not change.

how to change the text the text in the rich text editor开发者_运维技巧?


HtmlBox has a set_text(html) method you can call. Store the original htmlbox call you have now:

var box = $('#Survey_Value').htmlbox();

When you have new data call this:

box.set_text(data.Value);

This method accepts html and will set your <textarea>'s value as well.

0

精彩评论

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

关注公众号