fix URLs to reflect new static file location
This commit is contained in:
parent
698561316e
commit
a38754193d
|
@ -57,7 +57,7 @@ $(document).ready(function () {
|
|||
}, this.options, options);
|
||||
|
||||
// add additional plugins (autoloads plugins.js)
|
||||
CKEDITOR.plugins.addExternal('cmsplugins', settings.static_url + 'ckeditor_plugins/cmsplugins/');
|
||||
CKEDITOR.plugins.addExternal('cmsplugins', settings.static_url + 'djangocms_text_ckeditor/ckeditor_plugins/cmsplugins/');
|
||||
|
||||
// render ckeditor
|
||||
this.editor = CKEDITOR.replace(container, this.options);
|
||||
|
@ -93,4 +93,4 @@ $(document).ready(function () {
|
|||
};
|
||||
|
||||
});
|
||||
})(CMS.$);
|
||||
})(CMS.$);
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{% load i18n l10n admin_static %}
|
||||
|
||||
{% block extrastyle %}
|
||||
<link rel="stylesheet" href="{% static "css/cms.ckeditor.css" %}" />
|
||||
<link rel="stylesheet" href="{% static "djangocms_text_ckeditor/css/cms.ckeditor.css" %}" />
|
||||
{% endblock %}
|
||||
|
||||
{% block extrahead %}
|
||||
<script src="{% static "cms/js/modules/cms.base.js" %}"></script>
|
||||
<script src="{% static "ckeditor/ckeditor.js" %}"></script>
|
||||
<script src="{% static "js/cms.ckeditor.js" %}"></script>
|
||||
<script src="{% static "djangocms_text_ckeditor/cms/js/modules/cms.base.js" %}"></script>
|
||||
<script src="{% static "djangocms_text_ckeditor/ckeditor/ckeditor.js" %}"></script>
|
||||
<script src="{% static "djangocms_text_ckeditor/js/cms.ckeditor.js" %}"></script>
|
||||
{% endblock %}
|
||||
|
||||
<script>
|
||||
|
@ -21,7 +21,7 @@ $(document).ready(function () {
|
|||
|
||||
var container = $(this).attr('id');
|
||||
CMS.CKEditor.init(container, {{ settings|safe }}, {
|
||||
'static_url': '{{ STATIC_URL }}',{% if placeholder %}
|
||||
'static_url': '{{ STATIC_URL }}/djangocms_text_ckeditor',{% if placeholder %}
|
||||
'add_plugin_url': '{{ placeholder.get_add_url }}',
|
||||
'placeholder_id': {{ placeholder.pk|unlocalize|default:"''" }},
|
||||
'plugin_id': {{ plugin_pk|unlocalize }},
|
||||
|
|
Reference in New Issue