Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 2d3a7fc

Browse files
committed
Refs django-ckeditor#377: I really do not know what is wrong with me
1 parent 97451f8 commit 2d3a7fc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ckeditor/static/ckeditor/ckeditor-init.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
(function() {
1+
/* global CKEDITOR */
2+
;(function() {
3+
var el = document.getElementById('ckeditor-init-script');
4+
if (el && !window.CKEDITOR_BASEPATH) {
5+
window.CKEDITOR_BASEPATH = el.getAttribute('data-ckeditor-basepath');
6+
}
27

38
// Polyfill from https://developer.mozilla.org/en/docs/Web/API/Element/matches
49
if (!Element.prototype.matches) {

0 commit comments

Comments
 (0)