Skip to content

Commit

Permalink
Merge pull request #169 from nattyg93/master
Browse files Browse the repository at this point in the history
Restore compatibility with django-nested-admin
  • Loading branch information
hvlads authored Jan 6, 2024
2 parents 8a24ee1 + 1e20ca9 commit ce2a4b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_ckeditor_5/static/django_ckeditor_5/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function createEditors() {
}

const config = JSON.parse(
document.getElementById(script_id).textContent,
document.getElementById(`${script_id}-span`).textContent,
(key, value) => {
if (value.toString().includes('/')) {
return new RegExp(value.replaceAll('/', ''));
Expand Down
2 changes: 1 addition & 1 deletion django_ckeditor_5/templates/django_ckeditor_5/widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
</div>
<input type="hidden" id="{{script_id}}-ck-editor-5-upload-url" data-upload-url="{{upload_url}}" data-csrf_cookie_name="{{ csrf_cookie_name }}">

<span>{{ config|json_script:script_id }}</span>
<span id="{{script_id}}-span">{{ config|json_script:script_id }}</span>

0 comments on commit ce2a4b3

Please sign in to comment.