Skip to content

Editability Conditions not supported #465

@pascalrioux

Description

@pascalrioux

Description

The fields with the type "CKEditor" don't seem to support the "Editability Conditions" feature.

Normally if the user does not fit the editability conditions, I would expect them to be able to see the field value but not to be able to change it. Currently, if the user does not fit the conditions, any CKEditor field simply doesn't show up at all.

To me, it seems like a mistake since all the other core Craft field types do display the value of the field instead of hiding it.

From what I can read, it looks like CKEditor does provide a "Read-only mode" to disable the field. https://ckeditor.com/docs/ckeditor5/latest/features/read-only.html

Steps to reproduce

  1. Create a field of type CKEditor in a Entry type.
  2. Add an Editability Conditions for the current user that would prevent them from editing the field.
    e.g. "Email" - "equals" - "not-my-email@example.com"
  3. Go to "Entries" in the Craft control panel
  4. Click "New entry"
  5. Notice that the field is missing

Additional info

  • Craft version: Craft Solo 5.8.16
  • PHP version: 8.3.19
  • Database driver & version: MySQL 8.8.4
  • Plugins & versions: CKEditor 4.10.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions