Open robwatkin opened 9 years ago
The following hack works on my dev machine
fileObj.on("uploaded", function() {
imagesURL = '/cfs/files/cms-images/' + fileObj._id;
Meteor.setTimeout(function(){
$dom = $("<img>").attr('src',imagesURL);
$summernote.summernote("insertNode", $dom[0]);
}, 100);
});
Hi, I'm trying to understand a problem I'm experiencing inserting a file into the summernote text editor when using a CollectionFS store. Summernote provides an image insert callback which overrides the default behaviour. In this callback I insert the image into my CollectionFS store and in that async callback following comments at [https://github.com/CollectionFS/Meteor-CollectionFS/issues/351]() I have the following code
and then passing imageURL to summernote's insert method which then throws
GET http://localhost:3000/cfs/files/cms-images/mZsMWhrF5oZwQFbdG 503 (Service Unavailable) I think the problem may be with CollectionFS any advice would be appreciated.
I am also getting a warning in the logs
I have tried the "stored" event but that's not firing on my client at all.
Thanks