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

Updates needed for included media and added settings #42

Closed dtorres-sf closed 5 years ago

dtorres-sf commented 7 years ago

The included media seemed dated and I was unable to get it to work out of the box. I made updates to make the included media work. I also added two options:

FROALA_STORAGE_BACKEND - This allows for the storage used for uploaded images and files to be changed through settings. If nothing is provided it uses default_storage, otherwise it uses this backend. For me this is useful when uploading to S3, since by default everything is private, but I have a public storage backend I can use for froala uploaded files (useful if sending emails with froala for instance).

FROALA_JS_COOKIE - default False. If set to True it assumes js-cookie is installed and included to get the CSRF token using js-cookie.

dtorres-sf commented 6 years ago

@stefanneculai Can you take a look? As it stands I was not able to run django-froala without some of these changes.

Edit: Nevermind, I see you added them back.