django-cms / djangocms-text-ckeditor

Text Plugin for django CMS using CKEditor 4
https://www.django-cms.org/en/repositories-plugins/
BSD 3-Clause "New" or "Revised" License
167 stars 185 forks source link

[Issue]Struggling to add the CMS plugins to my toolbar for HTMLField, instead empty list. #658

Closed teethgrinder closed 7 months ago

teethgrinder commented 11 months ago

Hello, I am using Django-CMS 4 and djangocms-text-ckeditor 5.1.4. I have tried to expand capabilities of text editor by adding django-ckeditor-filebrowser-filer.

I have used the below settings

CMS_PLACEHOLDER_CONF = {

    'content': {
        'name' : _('Content'),
        'plugins': ['TextPlugin', 'LinkPlugin', 'FilerImage'],
        'default_plugins':[
            {
                'plugin_type':'TextPlugin',
                'values':{
                    'body':'<p>Great websites : %(_tag_child_1)s and %(_tag_child_2)s</p>'
                },
                'children':[
                    {
                        'plugin_type':'LinkPlugin',
                        'values':{
                            'name':'django',
                            'url':'https://www.djangoproject.com/'
                        },
                    },
                    {
                        'plugin_type':'FilerImage',
                        'values':{
                            'name':'django-cms',
                            'url':'https://www.django-cms.org'
                        },
                    },
                ]
            },
        ]
    }
}
CKEDITOR_SETTINGS = {
    'language': '{{ language }}',
    'toolbar': 'CMS',
    'toolbar_HTMLField': [
        ['Undo', 'Redo'],
        ['cmsplugins', '-', 'ShowBlocks'],
        ['Format', 'Styles'],
    ],
    'skin': 'moono-lisa',
}

Now i do get CMS Plugins tab but none of the plugins are listed. And i cannot add [django-ckeditor-filebrowser-filer] plugin. How do I format settings for Django-CMS 4?

fsbraun commented 11 months ago

@teethgrinder cmsplugins do only work inside a Text plugin, not within an HTMLField. Have you tried removing the plugin restrictions of CMS_PLACEHOLDER_CONF?

stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 7 months ago

This will now be closed due to inactivity, but feel free to reopen it.