Gauravwagh / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
Other
0 stars 0 forks source link

TinyMCE field doesn't save correctly #396

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which DJANGO-VERSION are you using?
1.5.1

Which GRAPPELLI-VERSION are you using?
2.4.5

Which BROWSER (including the version) are you using?
django-filebrowser 3.5.2

What steps will reproduce the problem?
1.go to add an item
2. feel the tinymce field
3.save

What is the expected output? What do you see instead?
I expected to save the content after I feel it. But the application doesn't 
find my text and send me a : cannot be empty

Please provide any additional information below.
I've added this to admin.py
        js = (
            '/static/grappelli/tinymce/jscripts/tiny_mce/tiny_mce.js',
            '/static/js/textarea.js',
)
and my textarea.js is :
    mode: 'exact',
    elements : "id_content_fr,id_content_en",
    theme: 'advanced',
    skin: 'default',

    // General
    accessibility_warnings: false,
    browsers: 'gecko,msie,safari,opera',
    dialog_type: 'window',
    editor_deselector: 'mceNoEditor',
    keep_styles: false,
    language: 'en',
    object_resizing: false,
    plugins: 'advimage,advlink,fullscreen,paste,media,searchreplace,grappelli,template',
    // directionality : "rtl",

... and other stuffs

Thank you in advance

Original issue reported on code.google.com by david-sc...@cifacom.com on 13 Sep 2013 at 6:46