We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

If it is a picture pasted by others, it will not be uploaded?

If it is a picture pasted by others, it will not be uploaded?




10 Replies 1 reply marked as answer

VJ Vinitha Jeyakumar Syncfusion Team December 13, 2022 11:28 AM UTC

Hi xu,

Can you please provide us with some more details about your reported issue for our better understanding,

  • Video illustration of issue replication.
  • Share the entire code snippet.
  • What is your use case scenario?
  • If possible, please share us with the issue reproducing runnable sample.

Regards,
Vinitha



XZ xu zhi bin December 13, 2022 12:49 PM UTC

I want to copy an image and paste it into rich text, but the url I paste in is local and will not be automatically uploaded to the server.




<ejs-richtexteditor :beforePasteCleanup="beforePasteCleanup" :imageUploadSuccess="onImageUploadSuccess" :imageSelected="imageSelected" :imageUploading="ImageUploadingEventArgs" :toolbarSettings="toolbarSettings" v-model="model.Content" :insertImageSettings="insertImageSettings" ref="defaultRTE" :height="400">

</ejs-richtexteditor>
insertImageSettings: {
saveUrl: 'https://*******'),
allowedTypes: ['.jpg','.png'],
path: "",

},


XZ xu zhi bin replied to Vinitha Jeyakumar December 13, 2022 12:52 PM UTC

I will not automatically upload the pasted pictures to the server. Only local blobs can be saved automatically. In this case, the browser will restart and the image will not be displayed.






VJ Vinitha Jeyakumar Syncfusion Team December 15, 2022 11:28 AM UTC

Hi Xu,


If you want to upload the pasted images to the server, you need to inject the PasteCleanup module. please check the sample below for your reference.

Code snippet:
<ejs-richtexteditor :toolbarSettings="toolbarSettings" :insertImageSettings="insertImageSettings">
                 
 </ejs-richtexteditor>

export default {
 name: "App",
  components: {
    "ejs-richtexteditor": RichTextEditorComponent,
  },
  data() {
    return {
        toolbarSettings: {
            items: ['Image']
        },
        insertImageSettings: {
        path: "https://localhost:44329/Uploads/",
        saveUrl: "https://localhost:44329/Home/SaveImage",
        }
    };
  },
 provide:{
    richtexteditor:[Toolbar, Link, Image, HtmlEditor, PasteCleanup]
}   
};



Regards,
Vinitha


XZ xu zhi bin replied to Vinitha Jeyakumar December 16, 2022 01:00 PM UTC

thank you.





XZ xu zhi bin December 16, 2022 03:27 PM UTC

In the official documents, where can I find all the modules?

I may not learn by myself. Are these things documented?




XZ xu zhi bin replied to Vinitha Jeyakumar December 17, 2022 03:29 AM UTC

https://ej2.syncfusion.com/vue/documentation/rich-text-editor/toolbar/

It seems that PasteCleanup cannot be found in the document. How can I learn the most comprehensive component document?




VJ Vinitha Jeyakumar Syncfusion Team December 19, 2022 05:13 AM UTC

Hi xu,


Query 1. "In the official documents, where can I find all the modules?"

Please find the documentation link below,

Query 2. "It seems that PasteCleanup cannot be found in the document. How can I learn the most comprehensive component document?"

Here is the link for PasteCleanup module,



Regards,
Vinitha


XZ xu zhi bin replied to Vinitha Jeyakumar December 19, 2022 11:59 AM UTC

Thank you. I may not have seen the translation software that is difficult to use in English. There was an introduction at the beginning.





VJ Vinitha Jeyakumar Syncfusion Team December 20, 2022 06:39 AM UTC

Hi xu,

We are glad to assist you. please get back to us if you need any further assistance.

Regards,
Vinitha

Marked as answer
Loader.
Up arrow icon