[CLOSED] Adding Upload Image button in HTML Editor with 4.5.1 version

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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.

    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.

Similar Threads

  1. How to display image after upload?
    By wichogg in forum 2.x Help
    Replies: 3
    Last Post: Mar 17, 2015, 6:34 AM
  2. [CLOSED] Image paste problem on html editor
    By EsraKilical in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 20, 2014, 7:50 AM
  3. Replies: 9
    Last Post: Oct 08, 2012, 7:49 AM
  4. how to Image upload and filtering it to preview image?
    By Mahmudur Rahman in forum 1.x Help
    Replies: 0
    Last Post: Sep 07, 2011, 7:58 AM
  5. [CLOSED] HTML Editor - insert image with relative path
    By jeremyl in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 07, 2010, 3:48 AM

Posting Permissions