Summernote Show Images that have been uploaded to a folder

前端 未结 3 1358
时光说笑
时光说笑 2021-01-15 03:04

I am using the really nice Summernote Editor for a little webapp. Instead of using the default inline base64 code for images I am storing the images in a folder.

I

3条回答
  •  星月不相逢
    2021-01-15 03:25

    In the new version of summernote onImageUpload callback is called only with files argument. It means that editor is not available.

    You can insert an image with:

    $('.summernote').summernote("insertImage", url, filename);
    

    In your case:

    $('.summernote').summernote("insertImage", data, 'filename');
    

提交回复
热议问题