Reading list Switch to dark mode

    Image Upload In summernote Editor

    Updated 3 June 2016

    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

    Searching for an experienced
    Opencart Company ?
    Find out More

    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

     

    . . .

    Leave a Comment

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


    1 comments

  • LOKESH RAVINDRA BANTUPALLI
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home