diff --git a/django_editorjs_fields/widgets.py b/django_editorjs_fields/widgets.py index 98fb2e6..c53773a 100644 --- a/django_editorjs_fields/widgets.py +++ b/django_editorjs_fields/widgets.py @@ -83,7 +83,7 @@ def media(self): plugins = self.plugins or PLUGINS if plugins: - js_list += ['//cdn.jsdelivr.net/npm/' + p for p in plugins] + js_list += [(p if p.startswith('https://') else ('//cdn.jsdelivr.net/npm/' + p)) for p in plugins] js_list.append('django-editorjs-fields/js/django-editorjs-fields.js')