Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing icons in Markdown editor #1693

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions home/static/css/fontawesome/css/fontawesome.min.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions home/static/css/fontawesome/css/regular.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
801 changes: 801 additions & 0 deletions home/static/css/fontawesome/webfonts/fa-regular-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 18 additions & 2 deletions home/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,25 @@ def limit_page_chooser(pages, request):
return pages


@hooks.register('insert_global_admin_css', order=100)
@hooks.register("insert_global_admin_css", order=100)
def global_admin_css():
return format_html('<link rel="stylesheet" href="{}">', static('css/global/admin.css'))
return format_html(
'<link rel="stylesheet" href="{}">',
static("css/global/admin.css"),
)

@hooks.register("insert_global_admin_css")
def import_fontawesome_stylesheet():
return "\n".join([
format_html(
'<link rel="stylesheet" href="{}">',
static("css/fontawesome/css/fontawesome.min.css"),
),
format_html(
'<link rel="stylesheet" href="{}">',
static("css/fontawesome/css/regular.min.css"),
),
])


@hooks.register('insert_global_admin_js', order=100)
Expand Down
3 changes: 2 additions & 1 deletion iogt/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,8 @@
EXPORT_FILENAME_TIMESTAMP_FORMAT = '%Y-%m-%dT%H%M%S'

WAGTAILMARKDOWN = {
'allowed_tags': ['i', 'b'],
"allowed_tags": ["i", "b"],
"autodownload_fontawesome": False,
}

TRANSLATIONS_PROJECT_BASE_DIR = BASE_DIR
Expand Down