BitBagCommerce / SyliusCmsPlugin

Content management system for eCommerce apps created on Sylius platform. Built with Sylius code quality, flexibility, BDD.
MIT License
235 stars 159 forks source link

Duplicated CKEditor toolbar #484

Open olimination opened 1 year ago

olimination commented 1 year ago

To Reproduce:

BitBag SyliusCmsPlugin: 4.0.6 FOSCKEditorBundle: 2.4.0 CKEditor: 4.22.1

Screenshot:

image

Workaround solution If I add the following config in some config file like config/packages/fos_ckeditor.yaml:

fos_ck_editor:
  ...
  configs:
    bitbag_sylius_cms_plugin:
      toolbar: false

it works.

Does anybody face the same issue? Did the FOSCKEditorBundle change something regarding config handling? It seems so that the default_config is loaded but also some more CKEditor config.

Thanks for your feedback.

Gorkyman commented 1 year ago

@olimination I can confirm that the same thing is happening to me and your solution resolves the issue.

stefanz92 commented 1 month ago

@olimination I can also confirm but your solution is not the best because this will load the default toolbar with all options, a better solution is: config/packages/fos_ckeditor.yaml

fos_ck_editor:
    configs:
        bitbag_sylius_cms_plugin:
            toolbar: custom_toolbar
    toolbars:
        configs:
            custom_toolbar:
                - '@standard.clipboard'
                - '@standard.editing'
                - '@standard.links'
                - '@standard.insert'
                - '@standard.tools'
                - '@standard.document'
                - '/'
                - '@standard.basic_styles'
                - '@standard.paragraph'
                - '@standard.about'

image