Django-tinymce-filebrowser
Django-tinymce-filebrowser copied to clipboard
tinymce Uncaught TypeError: Cannot call method 'apply' of undefined
I clone this repo to my django project. Add to list of installed apps 'mce_filebrowser'.
Here is my
TINYMCE_DEFAULT_CONFIG = {
'theme': "advanced",
#'cleanup_on_startup': True,
'custom_undo_redo_levels': 10,
'file_browser_callback': 'mce_filebrowser',
}
Also i change filebrowser.html template to load tinymce js files. Check it, everything is loaded. Currently have no idea what is the problem..
Fixed
I am currently getting this issue, Please help
What django version?
Django==1.5.4 django-cms==2.4.2
any ideas?
Hello rstalbow,
I'll look on this issue asap. For the moment i have no time available
okay great thanks. if you need anymore information please ask
I can't repeat the bug.
rstalbow please give more info on your installation steps.
I followed all the steps in your documentation. what other information do you need?
I have the same problem, did anybody work this out?
I have similar problem, but i don't remember.. Try add static files from tinymce to /static/ and collectstatic if DEBUG = False
Hey I just encountered this issue. Its a problem with how the ModelAdmin is set up.
Make sure you import the following in your admin.py:
from mce_filebrowser.admin import MCEFilebrowserAdmin
And then make sure your model's admin class extends MCEFilebrowserAdmin as well as or instead of ModelAdmin.
class ArticleAdmin(MCEFilebrowserAdmin):
If you want to use this without using the admin then take a look at #6. That solved my issue.