Django-tinymce-filebrowser icon indicating copy to clipboard operation
Django-tinymce-filebrowser copied to clipboard

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

Open r05 opened this issue 11 years ago • 13 comments

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..

r05 avatar Apr 22 '13 10:04 r05

Fixed

aisayko avatar May 13 '13 15:05 aisayko

I am currently getting this issue, Please help

rstalbow avatar Oct 23 '13 11:10 rstalbow

What django version?

r05 avatar Oct 23 '13 12:10 r05

Django==1.5.4 django-cms==2.4.2

rstalbow avatar Oct 23 '13 12:10 rstalbow

any ideas?

rstalbow avatar Oct 25 '13 10:10 rstalbow

Hello rstalbow,

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

aisayko avatar Oct 25 '13 10:10 aisayko

okay great thanks. if you need anymore information please ask

rstalbow avatar Oct 25 '13 10:10 rstalbow

I can't repeat the bug.

rstalbow please give more info on your installation steps.

aisayko avatar Nov 02 '13 13:11 aisayko

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

rstalbow avatar Nov 04 '13 09:11 rstalbow

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

mcarreiro avatar Feb 21 '14 07:02 mcarreiro

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

Darex1991 avatar Feb 21 '14 08:02 Darex1991

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):

fyaconiello avatar Sep 13 '14 23:09 fyaconiello

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

tisdall avatar Oct 28 '16 14:10 tisdall