Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated CKEditor toolbar #484

Open
olimination opened this issue Aug 30, 2023 · 2 comments
Open

Duplicated CKEditor toolbar #484

olimination opened this issue Aug 30, 2023 · 2 comments

Comments

@olimination
Copy link

To Reproduce:

  • Install BitBag SyliusCmsPlugin according the official installation guide using CKEditor v4.22.1
  • Open Sylius Admin and navigate for example to the "Blocks" section and create a new block
  • You will see the CKEditor is loaded with duplicated toolbars

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
Copy link

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

@stefanz92
Copy link

stefanz92 commented Sep 30, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants