Skip to content

Commit 170f8cf

Browse files
authored
Make CKeditor work with debug=false (#127)
1 parent 4f44d25 commit 170f8cf

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ckanext/pages/assets/webassets.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ main-js:
55
preload:
66
- base/main
77
contents:
8-
- vendor/ckeditor/ckeditor.js
98
- vendor/ckeditor/adapters/jquery.js
109
- vendor/datepicker/js/bootstrap-datepicker.js
1110
- js/ckedit.js

ckanext/pages/theme/templates_main/ckanext_pages/base_form.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,11 @@ <h1>{{ _('Edit page') }}</h1>
137137

138138
{% endblock %}
139139
</form>
140+
141+
{% block scripts %}
142+
<!--
143+
CKEditor needs to be loaded here instead of using webassets
144+
or it won't load properly when setting debug=False
145+
-->
146+
<script src="/vendor/ckeditor/ckeditor.js"></script>
147+
{% endblock %}

0 commit comments

Comments
 (0)