Django-cms: The not-technically-required Text plugin is in practice required

Created on 27 Dec 2016  路  5Comments  路  Source: django-cms/django-cms

Theoretically, you can create a django CMS project without having the Text plugin or an editor such as CKEditor installed.

In practice though, if you get to the _Welcome to django CMS_ page and try to use the page creation wizard, you will get a TemplateDoesNotExist at /cms_wizard/create/: cms/plugins/widgets/ckeditor.html error (naturally).

bug accepted

Most helpful comment

Hi,
I had the same problem with my installation. When I added the 'djangocms_text_ckeditor', to installed apps in settings.py, the issue vanished.

Does this help?

All 5 comments

Hi,
I had the same problem with my installation. When I added the 'djangocms_text_ckeditor', to installed apps in settings.py, the issue vanished.

Does this help?

The idea was always to simplify the core, we should aim to make djangocms-text-ckeditor an optional package.

Django CMS Admin Style tests are based on the assumption that CKEditor is installed (https://github.com/django-cms/djangocms-admin-style/blob/b11e87d6cb6765e449ce40e27a965ab43a1d8bbe/tests/requirements/base.txt)

This could be related to templating issue appearing in widgets. I will investigate further and update findings here.

On further research this is (at least partially) down to the cores reliance on the 'TextPlugin' provided by djangocms_text_ck_editor.

https://github.com/django-cms/djangocms-text-ckeditor/blob/7d578cdf799aab9c01d18558776720d7693aca4c/djangocms_text_ckeditor/cms_plugins.py#L173

This will have to be changed over and the tests re-run,. For now it is hard to get a full picture of this as, the tests assume that ckeditor is installed. Current test outcomes without plugin replacement: failures=3, errors=133,

WIP PR, still a couple of test failures to be resolved: https://github.com/django-cms/django-cms/pull/6972

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AhmedSalam22 picture AhmedSalam22  路  5Comments

czpython picture czpython  路  5Comments

quiqueporta picture quiqueporta  路  8Comments

koslib picture koslib  路  9Comments

maltebeckmann picture maltebeckmann  路  6Comments