verbb / field-manager

Field Manager is a Craft CMS plugin to make it easy to manage your fields and field groups.
MIT License
199 stars 16 forks source link

Add support for exporting CKEditor fields (with config) #100

Closed rungta closed 1 month ago

rungta commented 7 months ago

What are you trying to do?

Exporting CKEditor fields.

What's your proposed solution?

Craft has started storing CKEditor field configs separately in the project config. These are currently not included in the field export, only a reference to the config is included. Eg:

    {
        "name": "Rich Text",
        "handle": "richtext",
        "instructions": null,
        "required": null,
        "searchable": true,
        "translationMethod": "site",
        "translationKeyFormat": null,
        "type": "craft\\ckeditor\\Field",
        "settings": {
            "ckeConfig": "b317fb51-9087-4bb2-b4ce-7dfc46e566c1",
            "wordLimit": null,
            "showWordCount": false,
            "availableVolumes": "*",
            "availableTransforms": "",
            "defaultTransform": null,
            "enableSourceEditingForNonAdmins": false,
            "showUnpermittedVolumes": false,
            "showUnpermittedFiles": false,
            "purifierConfig": null,
            "purifyHtml": true,
            "columnType": "text"
        }
    }

Would be good to have the full config included in the export so that it can be imported on a different Craft project with the config intact.

Additional context

No response

engram-design commented 7 months ago

Added for the next release. To get this early, run composer require verbb/field-manager:"dev-craft-4 as 3.0.8".

rungta commented 7 months ago

Thanks Josh!

engram-design commented 1 month ago

Fixed in 3.0.9