Skip to content

Commit 21da764

Browse files
committed
update wysiwyg settings & code highlight on site
1 parent 3fa48dc commit 21da764

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

python_ru/settings/base.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,14 @@
160160
'Language']},
161161
{'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']},
162162
{'name': 'insert',
163-
'items': ['Image', 'CodeSnippet', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak']},
163+
'items': ['Image', 'CodeSnippet', 'Embed', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak']},
164164
'/',
165165
{'name': 'styles', 'items': [
166166
'Styles', 'Format', 'Font', 'FontSize']},
167167
{'name': 'colors', 'items': ['TextColor', 'BGColor']},
168168
],
169169
'toolbar': 'toolbar_CustomConfig', # put tollbar config name here
170-
'removePlugins': 'stylesheetparser',
170+
'removePlugins': ','.join(['stylesheetparser', 'flash']),
171171
'extraPlugins': ','.join([
172172
'codesnippet',
173173
'div',
@@ -180,7 +180,8 @@
180180
'clipboard',
181181
'dialog',
182182
'dialogui',
183-
'elementspath'
183+
'elementspath',
184+
'embed'
184185
]),
185186
},
186187
}

templates/base.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
<link rel="icon" type="image/png" href="{% static "favicons/favicon-16x16.png" %}" sizes="16x16">
1717
<link rel="manifest" href="{% static "favicons/manifest.json" %}">
1818
<link rel="mask-icon" href="{% static "favicons/safari-pinned-tab.svg" %}" color="#5bbad5">
19+
<link rel="stylesheet"
20+
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/styles/default.min.css">
21+
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/highlight.min.js"></script>
22+
<script>hljs.initHighlightingOnLoad();</script>
1923
<meta name="theme-color" content="#ffffff">
2024

2125
<meta property="og:url" content="">

0 commit comments

Comments
 (0)