mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-09 16:46:20 +01:00
[REMOVE] highlight.js and leave it as an example in the widget code
This commit is contained in:
@@ -15,21 +15,24 @@ class CssEditorWidget(forms.Textarea):
|
||||
"""
|
||||
|
||||
def __init__(self, attrs=None):
|
||||
default_attrs = {"class": "css-editor"}
|
||||
default_attrs = {"class": "custom-css-editor"}
|
||||
|
||||
if attrs:
|
||||
default_attrs.update(attrs)
|
||||
|
||||
super().__init__(default_attrs)
|
||||
|
||||
class Media:
|
||||
css = {
|
||||
"all": (
|
||||
"/static/custom_css/libs/highlight.js/11.10.0/styles/github.min.css",
|
||||
)
|
||||
}
|
||||
js = (
|
||||
"/static/custom_css/libs/highlight.js/11.10.0/highlight.min.js",
|
||||
"/static/custom_css/libs/highlight.js/11.10.0/languages/css.min.js",
|
||||
"/static/custom_css/javascript/custom-css.min.js",
|
||||
)
|
||||
# For when we want to add some sort of syntax highlight to it, which is not that
|
||||
# easy to do on a textarea field though.
|
||||
# `highlight.js` is just used as an example here, and doesn't work on a textarea field.
|
||||
# class Media:
|
||||
# css = {
|
||||
# "all": (
|
||||
# "/static/custom_css/libs/highlight.js/11.10.0/styles/github.min.css",
|
||||
# )
|
||||
# }
|
||||
# js = (
|
||||
# "/static/custom_css/libs/highlight.js/11.10.0/highlight.min.js",
|
||||
# "/static/custom_css/libs/highlight.js/11.10.0/languages/css.min.js",
|
||||
# "/static/custom_css/javascript/custom-css.min.js",
|
||||
# )
|
||||
|
||||
Reference in New Issue
Block a user