Issue Bug Closed

#102371RTE configuration Full.yaml not working as defined

Stefan Berger 11/14/23, 11:40 updated 03/02/25, 20:39

Description

Hi,

using the RTE configuration Full.yaml the defined buttons or the possible features don’t appear unless additional config is set.

E.g. there is the toolbar item showBlocks defined, but it only works, if you either set the extraPlugins config

        extraPlugins:
            - showblocks

or if you set the importModules config manually

        importModules:
           - { module: '@ckeditor/ckeditor5-show-blocks', exports: ['ShowBlocks'] }

Same for the word-count plugin, which is available, but not added to the Full.yaml configuration.

        extraPlugins:
            - wordcount

or

        importModules:
           - { module: '@ckeditor/ckeditor5-word-count', exports: ['WordCount'] }

Using the config extraPlugins has a additional pitfall: For the toolbar item example ‘showBlocks’ the extraPlugins setting has to be ‘showblocks’ or ‘ShowBlocks’ but NOT ‘showBlocks’. Maybe the mapping of the plugins could simply be case insensitive?!.

Thanks for analyzing and fixing the issue.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 1

  1. Georg Ringer commented and changed status New Closed 03/02/25, 20:39

    full.yaml contains the following section

        importModules:
          - { module: '@ckeditor/ckeditor5-word-count', exports: ['WordCount'] }
          # Provides fontFamily, fontSize, fontColor, and fontBackgroundColor toolbar items
          - { module: '@ckeditor/ckeditor5-font', exports: ['Font'] }
          # Provides showBlocks toolbar item
          - { module: '@ckeditor/ckeditor5-show-blocks', exports: ['ShowBlocks'] }
          # Provides textPartLanguage toolbar item
          - { module: '@ckeditor/ckeditor5-language', exports: ['TextPartLanguage'] }
          - { module: '@ckeditor/ckeditor5-mention', exports: ['Mention'] }
          - { module: '@ckeditor/ckeditor5-highlight', exports: ['Highlight'] }

    therefore that should be fine.

    if this still not working for you, please comment the issue or contact me via slack