[CLOSED] Adding Upload Image button in HTML Editor with 4.5.1 version
Hello,
In Ext 2.5 version we are using some plugins for adding upload image button for adding images to HTML editor. After migration with 4.5.1 version this functionality are not working. Below is sample code.
Note: Earlier we have implemented the code as per forum for 2.5 version with reference URL https://forums.ext.net/showthread.php?26577
Same required for 4.5.1 version.
Code:
X.HtmlEditor().AutoScroll(true).Value(Model.TemplateText).FieldLabel("").Width(750).Height(430).ID("htmlEditor")
.Plugins(plugin => { plugin.Add(Html.X().GenericPlugin()
.InstanceName("Ext.ux.form.HtmlEditor.imageUpload")); })
.Listeners(c => {
c.Sync.Fn = "changeEditor";
c.Render.Handler = "htmlEditorRender(this)";}
)
Giving error after clicking on Insert Image button
Code:
Uncaught Error: Invalid component "id": ""
at new Ext.Error (ext.axd:2029)
at Function.raise (ext.axd:2069)
at Object.Ext.raise (ext.axd:2091)
at constructor (ext.axd:44107)
at new constructor (ext.axd:8354)
at Object.widget (ext.axd:9559)
at constructor.create (ext.axd:17033)
at constructor.lookupComponent (ext.axd:94736)
at constructor.prepareItems (ext.axd:95157)
at constructor.add (ext.axd:94347)