Dnia 21-09-2010 o 17:41:26 Sithembewena Lloyd Dube <zebr...@gmail.com>
napisaĆ(a):
Hi,
Has anybody intergrated a WYSIWYG editor in the admin of a Django 1.2.1.
site? I have tried django-wysiwyg and TinyMCE to no avail. I need
something
with concise, up-to-date documentation.
If anybody has done this, please recommend and also point to the docs?
Thanks.
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 with textareas
--
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.