Skip to content

Commit

Permalink
Make CKeditor work with debug=false (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelboca committed Jun 7, 2023
1 parent 4f44d25 commit 170f8cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion ckanext/pages/assets/webassets.yml
Expand Up @@ -5,7 +5,6 @@ main-js:
preload:
- base/main
contents:
- vendor/ckeditor/ckeditor.js
- vendor/ckeditor/adapters/jquery.js
- vendor/datepicker/js/bootstrap-datepicker.js
- js/ckedit.js
Expand Down
Expand Up @@ -137,3 +137,11 @@ <h1>{{ _('Edit page') }}</h1>

{% endblock %}
</form>

{% block scripts %}
<!--
CKEditor needs to be loaded here instead of using webassets
or it won't load properly when setting debug=False
-->
<script src="/vendor/ckeditor/ckeditor.js"></script>
{% endblock %}

0 comments on commit 170f8cf

Please sign in to comment.