Menu Close
    Searching for an experienced Opencart Development Company ?

    Image Upload In summernote Editor

    If we use Summernote editor by normal process then it is not possible to upload images on the server because Summernote converts images to Base 64 format so when we save an image in the database then it takes too much space in the database. But with the help of some code we can upload images on the server through summernote editor. We have to use a default “onImageUpload” summernote function for image uploading.

    Normal using process of Summernote –

    Screenshot_2

    By use of “onImageUpload” function on Summernote –

    Screenshot_3

    After that, we have to use our normal process for image uploading. Trough AJAX we can dynamically save images.

    Screenshot_4

    In the success function, we have to return the image path in which path we have uploaded the image. Then image will be shown on the Summernote editor.

    Screenshot_5

     

    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    1 comments

  • LOKESH RAVINDRA BANTUPALLI
    I didn’t understand. Can you explain clearly
  • Back to Top