HI
I am strongly recommended you to use the FCKEditor instead of HtmlEditor with image plugin.
But if you are really want to use the plugin, it is also very simple.
As the plugin demo says, you are only have to add the "plugins" property to integrate the plugin. Here is the example code you can place it to a standalone js file and include it to admin panel page.
Code:
Ext.override(Ext.form.HtmlEditor,{
plugins: [
new Ext.ux.form.HtmlEditor.Divider(),
new Ext.ux.form.HtmlEditor.Picture({
uploadUrl:'php/up-img.php',
downloadUrl:'php/get-images.php',
flashUrl:'js/swfupload.swf'
})
]
});
The code is tend to extend the HtmlEditor to integrate the plugin. As you know, I think you have to implement the uploadUrl and downloadUrl, I think you can create a new Controller and actions to achieve file management.
BTW, you can add your owner js files to the section of names "extjsux" which in the file of "externalResources.config".
I think it will be helps.
Regards,
Jifeng Huang
Kooboo Team
Microsoft ASP.NET MVP