heymexa / froala-images-multi-upload

Plugin for Froala Editor. The plugin allows to upload one or more images to the server. Demo http://heymexa.ru/froala_images_multi_upload/v2/
MIT License
12 stars 3 forks source link

Throw errors when insert uploaded images for Froala 2.9.1 #2

Open lovelyelfpop opened 5 years ago

lovelyelfpop commented 5 years ago

Here is the code

  $('#edit').froalaEditor({
    // Set custom buttons with separator between them.
    toolbarButtons: ['undo', 'redo' , '|', 'bold', 'italic', 'imagesMultiUpload', 'html'],
    imageUploadURL: 'http://localhost:42139/FroalaHandler.ashx'
  });

Images are uploaded after I select multiple images, but it throws errors when I insert them into the editor.

  The given range isn't in document.
  Uncaught DOMException: Failed to execute 'selectNode' on 'Range': the given Node has no parent.

111 222