Closed alexchetv closed 8 years ago
The summernote onImageUpload callback signature was changed, so we need modify orion/packages/summernote/summernote.js:
onImageUpload: function(files) { var upload = orion.filesystem.upload({ fileList: files, name: files[0].name, uploader: 'summernote' }); Session.set('orionSummernoteIsUploading', true); Session.set('orionSummernoteProgress', 0); Tracker.autorun(function () { if (upload.ready()) { if (upload.error) { console.log(upload.error); alert(upload.error.reason); } else { //editor.insertImage($editable, upload.url); element.summernote("insertImage", upload.url); } Session.set('orionSummernoteIsUploading', false); } }); Tracker.autorun(function () { Session.set('orionSummernoteProgress', upload.progress()); }); }
Got the bug too :)
Same here...
My PR has been merged so I think we can close the issue, the bug should be resolved :)
The summernote onImageUpload callback signature was changed, so we need modify orion/packages/summernote/summernote.js: