Hi,
Using the JS2 Rich Text Editor control in a C# ASP.NET MVC 4.5 application, how is it possible to store an uploaded image server-side AND have the src property of the resulting img element point to a server-side URL so that when the content of the Rich Text Editor has been saved (server side) and is re-rendered at a later date the img element points to a server-side copy of the image?
I have successfully set the saveUrl parameter so that it is possible to save the image server-side - but the resulting img element on the client still references a blob url which does not persist the image between sessions (or between users).
There seems to be scant documentation on this. Key questions are:
1. Is there a difference between the Path parameter and the saveUrl parameter of the InsertImageSettings?
2. Should the server-side method return anything? (presumably yes, otherwise how will a server-side URL be set - but what?).
3. What can be done to force the img element to use the server-side URL rather than a blob url?
I've tried catching the ActionBegin and ActionComplete events, but they don't seem to contain anything useful.
The Razor definition of my Rich Text Editor control is as follows...
var items = new object[] {"Bold", "Italic", "Underline", "|", "Formats", "Alignments", "OrderedList", "UnorderedList", "|", "CreateLink", "Image", "|", "SourceCode", "FullScreen", "Undo", "Redo"};
@Html.EJS().RichTextEditor("symptoms").ActionBegin("rteActionBegin").ActionComplete("rteActionComplete").Value(ticket.symptoms).InsertImageSettings(new RichTextEditorImageSettings(){SaveUrl = "/FSC/SaveImage"}).Placeholder("e.g. Contents page won't generate").ToolbarSettings(e => { e.Type(Syncfusion.EJ2.RichTextEditor.ToolbarType.Expand).EnableFloating(false).Items(items); }).Change("setSymptoms").Render()