Jun 22, 2018, 10:08 AM
[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.
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.
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 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)
Last edited by MOHAMMEDRAFI; Jun 22, 2018 at 10:47 AM.