Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
03a15c2b
Commit
03a15c2b
authored
Dec 07, 2016
by
Sébastiaan Versteeg
Browse files
Use advanced TinyMCE to make sure you can add hyperlinks
parent
47128457
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/thaliawebsite/settings/settings.py
View file @
03a15c2b
...
...
@@ -85,7 +85,6 @@ MIDDLEWARE = [
ROOT_URLCONF
=
'thaliawebsite.urls'
# WARNING
# Also update this in production.py!!!
TEMPLATES
=
[
...
...
@@ -226,3 +225,13 @@ THALIAPP_API_KEY = ('5b2bff55b74f74678dd578f8f669e959'
CORS_ORIGIN_ALLOW_ALL
=
True
CORS_URLS_REGEX
=
r
'^/api/.*$'
CORS_ALLOW_METHODS
=
(
'GET'
,
'POST'
)
# TinyMCE config
TINYMCE_DEFAULT_CONFIG
=
{
'theme'
:
"advanced"
,
'theme_advanced_buttons1'
:
"bold,italic,underline,separator,"
+
"link,unlink,separator,bullist,"
+
"numlist,separator,undo,redo"
,
'theme_advanced_toolbar_location'
:
"top"
,
'relative_urls'
:
False
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment