fix URLs to reflect new static file location

This commit is contained in:
Mateusz Marzantowicz 2014-06-15 16:58:55 +02:00
parent 698561316e
commit a38754193d
2 changed files with 7 additions and 7 deletions

View File

@ -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.$);

View File

@ -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 }},