craftcms / ckeditor

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

Adjusting CkEditor Config leads to Exception #210

Closed vardumper closed 7 months ago

vardumper commented 7 months ago

Description

Steps to reproduce

  1. I added a blockquote field to a fields CKEditor configuration
  2. I saved the field
  3. Now opening the "Edit Field" results in a white flyout area
  4. Choosing the field under Settings -> Fields results in a exception
    Invalid CKEditor config UUID: 482034cc-9037-4642-8d43-a8061a15ef6f
    in /var/www/html/vendor/craftcms/ckeditor/src/CkeConfigs.phpat line 47
    in /var/www/html/vendor/twig/twig/src/Extension/CoreExtension.php at line 1635– craft\ckeditor\CkeConfigs::getByUid()

    In order to undo the change, I need to edit the field. I am not able to spot or find this UID in the DB.

Additional info

vardumper commented 7 months ago

i found the UID in the config/project/fields/my-field.yaml and replaced it with another one from config/project/ckeditor/configs/.yaml This fixed the error