In-place editor image upload

Hello,
I have an in-place editor with a RTE model. Everything works fine however I am unable to bind an event on image upload. What I want to do is get the image in byte[] and upload it to the server. This is my RTE model:

 public RichTextEditorModel RteModel = new RichTextEditorModel()
    {
        ToolbarSettings = new ToolbarSettingsModel()
        {
            Items = new object[]  { "Image", "|",
        "Bold", "Italic", "Underline", "SubScript", "SuperScript", "StrikeThrough",
        "FontName", "FontSize", "FontColor", "BackgroundColor",
        "LowerCase", "UpperCase", "|",
        "Formats", "Alignments", "OrderedList", "UnorderedList",
        "Outdent", "Indent", "|", "Undo", "Redo" }
        },
        SaveInterval = 600,
        InsertImageSettings = new ImageSettingsModel()
        {
            Height = "150px",
            Width = "150px",
        }
    };

I tried using ImageUploading but cannot attach a method to it.

2 Replies 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team October 30, 2020 11:00 AM UTC

Hi Ivan, 
 
Greetings from Syncfusion support, 
 
We have validated your reported query. Currently, we can’t bind C# events in the code section of the Blazor. We have also planned to “Improve the performance with Blazor In-place editor component” with our 2020 Volume 4 main release.  
  
You can now track the current status of the report, review the proposed resolution timeline, and contact us for any further inquiries through this link: https://www.syncfusion.com/feedback/18664/    
 
Regards, 
Indrajith 



IS Indrajith Srinivasan Syncfusion Team December 18, 2020 03:06 PM UTC

Hi Ivan,  
  
Thanks for your patience,  
  
We have improved the performance of the SfInplaceEditor, with our Volume 4 main release version 18.4.30. We would like you to review the breaking changes and the release notes, regarding the changes we have included in this release from the below location before you upgrade.  
  
 
You can call the events form the Rich Text Editor, by using the below event tags. Check the below code blocks for reference. 
 
 
@using Syncfusion.Blazor.InPlaceEditor 
 
<SfInPlaceEditor TValue="string" Type="InputType.RichTextEditor"> 
    <EditorComponent> 
        <SfRichTextEditor> 
            <RichTextEditorEvents OnImageUploading="@onUploading"></RichTextEditorEvents> 
        </SfRichTextEditor> 
    </EditorComponent> 
</SfInPlaceEditor> 
 
 
 
  
Can you please upgrade your package to this version and let us know if you are facing any difficulties?  
  
Regards,  
Indrajith 


Marked as answer
Loader.
Up arrow icon