craftcms / ckeditor

Edit rich text content in Craft CMS using CKEditor.
https://plugins.craftcms.com/ckeditor
GNU General Public License v3.0
46 stars 23 forks source link

Config Options and Custom Styles mixed up #129

Closed idleog closed 1 year ago

idleog commented 1 year ago

Description

Config setting shows same content for 'Config options' and 'Custom Styles'. The values have been setup by './craft project-config/apply', deployed on live server from local machine.

Changing one or another field, (or deleting them) changes both fields. (see screenshots)

It's weird this is only on my production environment, not on the corresponding local one.

What I did

  1. Installed CKEditor plugin on local machine
  2. Generated one CKEditor field (and corepsonding config setting)
  3. Converted existing Redactor fields with 'craft ckeditor/convert' (worked like a charm)
  4. installed CKEditor plugin on production
  5. deployed Config files to production server
  6. run 'craft project-config/apply' on production

The project config files for the CKEditor config settings show the correct values for css and options. As well, the css custom styles are correct in the CKEditor fields. It seems that the problem is only on the CKEditor Config Mask

Additional info

Bildschirmfoto 2023-08-25 um 11 52 27 Bildschirmfoto 2023-08-25 um 11 52 06

project.zip

brandonkelly commented 1 year ago

Very strange. I’m not able to reproduce this.

Can you try running the following command on production?

php craft project-config/apply --force
idleog commented 1 year ago

I tried with the --force option, did not help... At least all things are correct on production site, when I do the changes on dev environment and deploy to production.

brandonkelly commented 1 year ago

So you’re saving that the fields are still working correctly; it’s just that the CKEditor Config settings are showing the incorrect values?

idleog commented 1 year ago

Correct. Any settings I set on local machine, upload (via config project files) and apply on production, are behaving correctly. But shown wrong on production ckeditor config masks. And are not editable there.

brandonkelly commented 1 year ago

Would you be able to share your production database backup and Composer files, so we can try to reproduce with them? If so you can send them to support@craftcms.com.

idleog commented 1 year ago

Your comment inspired me to run composer update on production... and it solved the problem! (maybe sth with nystudio107/craft-code-editor (which was updated to 1.0.13)? Thanks anyway for your help!

brandonkelly commented 1 year ago

Oh great! Thanks for the update, and glad it’s sorted now.

idleog commented 1 year ago

Thank you for your help and your great work. I really like the CKEditor plugin!