Rename images before inserting it in RichTextEditor and show saved images

Hi
I Can rename images before inserting - helped this link


The image is not displayed when receiving and displaying
Saved Image address Is =
/images/1121.jpg

But To display the image must  image url  be complete
For Example=
http://example.com/images.1121.jpg




3 Replies 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team June 25, 2020 02:55 PM UTC

Hi Devparsafardd, 
 
Greetings from Syncfusion support, 
 
We have validated your reported query. If the path property for the e-richtexteditor-insertimagesettings is configured the image URL shows the mapped path. If you want to show your own saved path, we suggest you to configure the path property as empty string and change the Image URL in the imageUploadSuccess event. We have prepared a sample that tries to meet your requirements by changing the file path from the local host where the image is saved. 
 
 
<ejs-richtexteditor id="image-save" imageUploadSuccess="onsuccess"> 
    <e-richtexteditor-insertimagesettings saveUrl="/Home/SaveFile" path=""></e-richtexteditor-insertimagesettings> 
</ejs-richtexteditor> 
 
<script> 
     function onsuccess(args) 
    { 
        // Assign the URL to change in the <img /> src attribute  
        //args.File.Name = “Can replace the image saved URL here”; 
        args.file.name = "http://localhost:58824/Images/" + args.file.name; // Image saved path + Image name 
 
    } 
</script> 
 
 
 
Please let us know if the solution helps, 
 
Regards, 
Indrajith 


Marked as answer

HP hpf porsesh June 26, 2020 06:14 AM UTC

Thank you very much.



IS Indrajith Srinivasan Syncfusion Team June 26, 2020 01:21 PM UTC

Hi Devparsafardd,

Welcome, Please let us know if you need any further assistance.

Regards, 
Indrajith 


Loader.
Up arrow icon