Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad url for filebrowserBrowseUrl #11

Open
cubiczx opened this issue Oct 28, 2015 · 3 comments
Open

Bad url for filebrowserBrowseUrl #11

cubiczx opened this issue Oct 28, 2015 · 3 comments

Comments

@cubiczx
Copy link

cubiczx commented Oct 28, 2015

I config my ckeditor with

'filebrowserBrowseUrl': '/browser/browse.php',

But when I click to show server files show 404 error:

Request URL:http://0.0.0.0:8080/ckeditor/filemanager/?CKEditor=id_html&CKEditorFuncNum=3&langCode=ca
Request Method:GET

But 'filebrowserBrowseUrl': '/ckeditor/browse/', says: TemplateDoesNotExist at /ckeditor/browse/ browse.html
And with 'filebrowserBrowseUrl': '/static/filemanager/index.html', 404 equals.
And with 'filebrowserBrowseUrl': '/ckeditor/filemanager/ 404 equals.
And with 'filebrowserBrowseUrl': '/ckeditor/browser/', 404 equals.

Which is good url?

@cubiczx
Copy link
Author

cubiczx commented Oct 28, 2015

People solve with django-ckeditor/django-ckeditor#221 in MANIFEST.in add: recursive-include ckeditor_uploader/templates *

I hope you change in your file MANIFEST.in:
https://github.com/darklow/django-suit-ckeditor/blob/master/MANIFEST.in

@cubiczx
Copy link
Author

cubiczx commented Oct 28, 2015

The good url is:

'filebrowserBrowseUrl': '/browser/browse/',

But to fix error:

TemplateDoesNotExist at /ckeditor/browse/ browse.html

Copy browse.html file from repo https://github.com/django-ckeditor/django-ckeditor/blob/675d88e65b71e3ecf723605d6981846895f45faf/ckeditor_uploader/templates/ckeditor/browse.html to /templates/browse.html and copy statics from repo https://github.com/django-ckeditor/django-ckeditor/tree/master/ckeditor/static/ckeditor to /static/

@xros
Copy link

xros commented Feb 6, 2018

In year 2018, this bug still exists! @cubiczx Thank you, it works now. Can't image there is a bug not fixed for 3 years... tested on django 1.11 and django-ckeditor 5.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants