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 static issue in production #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion wagtailtinymce/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

import json

from django.conf import settings

from django.core.urlresolvers import reverse
from django.templatetags.static import static
from django.utils import translation
Expand Down Expand Up @@ -66,7 +68,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_files = [
'wagtailtinymce/js/vendor/tinymce/tinymce.jquery.js',
Expand Down