Hi.

Im using the latest svn of django (SVN 7457) and the latest release of
TinyMCE (3.0.7)

When I use TinyMCE in django-admin, my ForeignKey field, with option
raw_id_admin=True, I can't select an Item. The link that usually
insert the Item ID into the ForeignKey field, simply redirects me to
the admin/blog/image/4/ instead when I use TinyMCE .


I use this to include TinyMCE into django-admin:

 js = (
        'js/tiny_mce/tiny_mce.js',
        'js/textareas.js',
 )


My textareas.js is:

tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_buttons1 :
"fullscreen,separator,preview,separator,formatselect,bold,italic,underline,strikethrough,separator,bullist,numlist,separator,undo,redo,separator,link,unlink,separator,image,cleanup,help,separator,code",
    theme_advanced_blockformats : "p,h2,h3",
    width: '500',
    height: '200',
        auto_cleanup_word : true,
        plugins :
"table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,fullscreen",
        plugin_insertdate_dateFormat : "%m/%d/%Y",
        plugin_insertdate_timeFormat : "%H:%M:%S",
        extended_valid_elements : "a[name|href|target=_blank|title|
onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|
align|onmouseover|onmouseout|name],hr[class|width|size|
noshade],font[face|size|color|style],span[class|align|style]",
        fullscreen_settings : {
                theme_advanced_path_location : "top",
                theme_advanced_buttons1 :
"fullscreen,separator,preview,separator,cut,copy,paste,separator,undo,redo,separator,search,replace,separator,code,separator,cleanup,separator,bold,italic,underline,strikethrough,separator,forecolor,backcolor,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,help",
                theme_advanced_buttons2 :
"removeformat,styleselect,formatselect,fontselect,fontsizeselect,separator,bullist,numlist,outdent,indent,separator,link,unlink,anchor",
                theme_advanced_buttons3 :
"sub,sup,separator,image,insertdate,inserttime,separator,tablecontrols,separator,hr,advhr,visualaid,separator,charmap,emotions,iespell,flash,separator,print"
        }
});


This is certainly not a django bug, but Is there any way to modify
TinyMCE to work with ForeignKey field, with option raw_id_admin=True ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to