Exemple #1
0
 class Media:
     js = (
         JS('ckeditor/ckeditor-init.js', {
             'id': 'ckeditor-init-script',
             'data-ckeditor-basepath': getattr(
                 settings,
                 'CKEDITOR_BASEPATH',
                 static('ckeditor/ckeditor/'),
             ),
         }),
         'ckeditor/ckeditor/ckeditor.js',
     )
Exemple #2
0
 class Media:
     js = (
         JS(
             "ckeditor/ckeditor-init.js",
             {
                 "id": "ckeditor-init-script",
                 "data-ckeditor-basepath": getattr(
                     settings,
                     "CKEDITOR_BASEPATH",
                     static("ckeditor/ckeditor/"),
                 ),
             },
         ),
         "ckeditor/ckeditor/ckeditor.js",
     )
Exemple #3
0
 class Media:
     js = ()
     try:
         js += (
             JS('ckeditor/ckeditor-init.js', {
                 'id': 'ckeditor-init-script',
                 'data-ckeditor-basepath': getattr(
                     settings,
                     'CKEDITOR_BASEPATH',
                     static('ckeditor/ckeditor/'),
                 ),
             }),
             'ckeditor/ckeditor/ckeditor.js',
         )
     except AttributeError:
         raise ImproperlyConfigured("django-ckeditor requires \
                 CKEDITOR_MEDIA_PREFIX setting. This setting specifies a \
                 URL prefix to the ckeditor JS and CSS media (not \
                 uploaded media). Make sure to use a trailing slash: \
                 CKEDITOR_MEDIA_PREFIX = '/media/ckeditor/'")