Commits

Anonymous committed d17f828

Updated for newer CodeMirror versions
Added support for CKEditor

Comments (0)

Files changed (1)

gnocchi/cms/admin.py

         css = {
             'all': (
                 os.path.join(settings.CODEMIRROR, 'lib/codemirror.css'),
-                os.path.join(settings.CODEMIRROR, 'mode/xml/xml.css'),
-                os.path.join(settings.CODEMIRROR, 'mode/javascript/javascript.css'),
-                os.path.join(settings.CODEMIRROR, 'mode/css/css.css'),
+                os.path.join(settings.CODEMIRROR, 'theme/default.css'),
             )
         }
         js = (
     list_filter = ('parent', 'is_published',)
     list_editable = ('is_published',)
 
+    class Media:
+        js = (
+            'ckeditor/ckeditor.js',
+            'gnocchi/ckeditor_page.js',
+        )
     fieldsets = (
         (None, {
             'fields': ('parent', 'path', 'is_published',),