Skip to content

Commit

Permalink
Try to fix issue with staticfiles in production
Browse files Browse the repository at this point in the history
See also isotoma#22.
  • Loading branch information
lelit committed Sep 7, 2023
1 parent d8544a5 commit dba2522
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wagtailtinymce/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import json

from django import __version__ as DJANGO_VERSION
from django.conf import settings
from django.templatetags.static import static
from django.utils import translation
from django.utils.html import escape
Expand Down Expand Up @@ -85,7 +86,7 @@ def insert_editor_js():
' window.tinymce.suffix = "";'
'}}());'
'</script>',
to_js_primitive(static('wagtailtinymce/js/vendor/tinymce')),
to_js_primitive(settings.STATIC_URL + 'wagtailtinymce/js/vendor/tinymce'),
)
js_includes = _format_js_includes([
'wagtailtinymce/js/vendor/tinymce/jquery.tinymce.min.js',
Expand Down

0 comments on commit dba2522

Please sign in to comment.