Dnia 13-09-2010 o 18:57:35 tricks...@googlemail.com <p...@hotmail.co.uk>
napisaĆ(a):
I installed Django tiny mce however i am getting a normal text area in
my admin. Can anyone help me to correct this to a rich text area where
i can access text formatting?
I just downloaded newest tinyMCE and placed it in 'js' directory, then i
made proper cfg
in modelAdmin:
class Media:
js = ('js/tiny_mce/tiny_mce.js', 'js/tiny_mce/tiny_mce_config.js',)
and the config in tiny_mce_config.js file:
tinyMCE.init({
mode : "textareas",
width : "800",
height : "500",
theme : "advanced",
language : 'pl',
content_css : "../../css/style.css",
theme_advanced_toolbar_location : "top",
plugins : 'preview, searchreplace, paste, table, insertdatetime, media',
theme_advanced_buttons1 :
'preview,undo,redo,visualaid,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,anchor,image,cleanup,help,code',
theme_advanced_buttons2 :
'bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect',
theme_advanced_buttons3 :
'forecolor,backcolor,|,sub,sup,|,charmap,insertdate,inserttime,media,|,tablecontrols'
});
and it works fine in admin panel
--
Linux user
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.