Commits

funkybob  committed 92c4b54

Removed ckeditor support

  • Participants
  • Parent commits cd2eb13

Comments (0)

Files changed (4)

File gnocchi/cms/admin.py

 
     class Media:
         js = (
-            os.path.join(settings.CKEDITOR, 'ckeditor.js'),
-            'gnocchi/ckeditor_page.js',
             'gnocchi/admin_list_reorder.js',
         )
     fieldsets = (

File gnocchi/cms/models.py

     title = models.CharField(max_length=512)
 
     is_published = models.BooleanField(default=True)
+    order = models.PositiveIntegerField(default=0)
 
     template = models.ForeignKey(Template, blank=True, null=True)
     content = models.TextField(blank=True)
 
     objects = PageManager()
 
-    order = models.PositiveIntegerField(default=0)
-
     class Meta:
         verbose_name = _('page')
         verbose_name_plural = _('pages')

File gnocchi/cms/settings.py

     STATIC_URL = settings.MEDIA_URL
 CODEMIRROR = getattr(settings, 'CODEMIRROR',
     os.path.join(STATIC_URL, 'codemirror'))
-CKEDITOR = getattr(settings, 'CKEDITOR',
-    os.path.join(STATIC_URL, 'ckeditor'))
 
 # For Context Variables
 CV_NAMESPACE = getattr(settings, 'CV_NAMESPACE', 'cv')

File gnocchi/cms/static/gnocchi/ckeditor_page.js

-django.jQuery(document).ready(function () {
-	try {
-		CKEDITOR.replace('id_content', {
-			shiftEnterMode: CKEDITOR.ENTER_BR
-		});
-	} catch (err) {}
-});
-