Reputation: 1593
I have been trying to load the html file into the html editor. Is there any way to load the html file in the html editor? I've tried the following code but it does not work:
loader : {url : 'uploads/temp.html', autoload : true}
Upvotes: 0
Views: 308
Reputation: 3152
I don't get it why this question is marked as answered, as the answer is only a workaround for what's going wrong. As I can see there is a typo in autoload
what should be autoLoad
.
http://docs.sencha.com/extjs/5.1/5.1.1-apidocs/#!/api/Ext.form.field.HtmlEditor-cfg-loader
Or is loader
just not working for what you want?
Upvotes: 0
Reputation: 562
You should use Ext.Ajax.request for the request and the setValue method to set the html into the HtmlEditor
Upvotes: 1