aisayko / Django-tinymce-filebrowser

Simple django-based file uploader and viewer for TinyMCE
MIT License
35 stars 32 forks source link

tinymce Uncaught TypeError: Cannot call method 'apply' of undefined #2

Open r05 opened 11 years ago

r05 commented 11 years ago

Screenshot - 04222013 - 02:01:06 PM 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..

aisayko commented 11 years ago

Fixed

rstalbow commented 10 years ago

I am currently getting this issue, Please help

r05 commented 10 years ago

What django version?

rstalbow commented 10 years ago

Django==1.5.4 django-cms==2.4.2

rstalbow commented 10 years ago

any ideas?

aisayko commented 10 years ago

Hello rstalbow,

I'll look on this issue asap. For the moment i have no time available

rstalbow commented 10 years ago

okay great thanks. if you need anymore information please ask

aisayko commented 10 years ago

I can't repeat the bug.

rstalbow please give more info on your installation steps.

rstalbow commented 10 years ago

I followed all the steps in your documentation. what other information do you need?

mcarreiro commented 10 years ago

I have the same problem, did anybody work this out?

Darex1991 commented 10 years ago

I have similar problem, but i don't remember.. Try add static files from tinymce to /static/ and collectstatic if DEBUG = False

fyaconiello commented 9 years ago

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):
tisdall commented 7 years ago

If you want to use this without using the admin then take a look at #6. That solved my issue.