petehouston / laravel-tinymce-simple-imageupload

Simple image upload for TinyMCE in Laravel.
69 stars 25 forks source link

js console error #1

Closed robbielove closed 8 years ago

robbielove commented 8 years ago

While the images seem to upload fine, I was having issues with one view and discovered this message shows on pages with the 'tinymce init code at the top' included in them:

Uncaught TypeError: Cannot read property 'uploadImages' of null

petehouston commented 8 years ago

@robbielove does the text Upload success display?

robbielove commented 8 years ago

I just tested this and found no Upload success message, I simply select the image from the file dialog and it suddenly appears in the TinyMCE editor and then I save my object but don't see anything relating to Upload success while saving, it simply works.

robbielove commented 8 years ago

it seems i had tried previously to include image upload functionality and mistakenly thought it was part of the code you supplied, removing the offending code shows no error

tinymce.activeEditor.uploadImages(function(success) { document.forms[0].submit(); });

this is in the tinymce docs : https://www.tinymce.com/docs/get-started/upload-images/

no upload success message appears still. however i'm not convinced that one is meant to display...