appy.gen: replaced tiny_mce with ckeditor.

This commit is contained in:
Gaetan Delannay 2012-01-02 13:54:03 +01:00
parent ba1743b38e
commit 0e7dfa3aaf
469 changed files with 1265 additions and 40371 deletions

View file

@ -1411,8 +1411,7 @@ class BaseMixin:
def getEditorInit(self, name):
'''Gets the Javascrit init code for displaying a rich editor for
field p_name.'''
return 'tinyMCE.init({\nmode : "textareas",\ntheme : "simple",\n' \
'elements : "%s",\neditor_selector : "rich_%s"\n});'% (name,name)
return "CKEDITOR.replace('%s', {toolbar: 'Appy'})" % name
def isTemporary(self):
'''Is this object temporary ?'''