开发者

Dynamically populating an ExtJS HTML editor

开发者 https://www.devze.com 2023-01-02 13:52 出处:网络
So I\'m using ExtJS for a job I\'m working and I\'m trying to dynamically populate the textarea associated with the HTML editor with data based on what a user selects from a combo box. From 开发者_开发

So I'm using ExtJS for a job I'm working and I'm trying to dynamically populate the textarea associated with the HTML editor with data based on what a user selects from a combo box. From 开发者_开发技巧what I've found, I can load the HTML editor with text using the defaultValue property. So if I'm going to populate it after the page loads, can I give it something like a datastore or is there a method I can call to set the text?


Just call foo.setValue("bar");, like with all form inputs.
http://www.extjs.com/deploy/dev/docs/source/Field.html#method-Ext.form.Field-setValue
http://www.extjs.com/deploy/dev/docs/?class=Ext.form.HtmlEditor

0

精彩评论

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