froala / django-froala-editor

Package to integrate Froala WYSIWYG HTML rich text editor with Django.
https://froala.com/wysiwyg-editor
283 stars 72 forks source link

Uncaught ReferenceError: $ is not defined #56

Closed Kenan7 closed 6 years ago

Kenan7 commented 6 years ago

I used FroalaField() in models.py and included css and js files to my base html. But looks like this function does not work. <script> $(function(){ $('#id_description').froalaEditor({"inlineMode": false, "imageUpload": false, "fileUpload": false}) }); </script>

it says on javascript console

Uncaught ReferenceError: $ is not defined

also I have this error

Uncaught TypeError: Cannot read property 'fn' of undefined at froala_editor.min.js:7 at froala_editor.min.js:7 at froala_editor.min.js:7

Kenan7 commented 6 years ago

Issue has nothing to do with editor. I solved it by making sure jquery loads first.