ckeditor
ckeditor copied to clipboard
Need to be able to prevent ckeditor from implicitly running @parseRefs
Description
Unlike other CraftCMS fields, ckeditor fields implicitly run the GraphQL @parseRefs directive when returning a ckeditor field with ReferenceTags.
This causes problems when ReferenceTags need to be available to the front end application for additional logic handling such as scoped or conditional values.
I've also created an issue in CraftCMS repo for adding a @noParseRefs directive, if this is better handled that way rather than in this plugin. https://github.com/craftcms/cms/issues/16292
Steps to reproduce
- Add a ReferenceTag to a text field and a ckeditor field.
- Query the ckeditor field from GraphQL, and the ReferenceTags will be parsed without specifying the @parseRefs directive, while the text field will not.
Additional info
- Craft version: 5.5.3
- PHP version: 8.2
- Database driver & version: MySQL 8.0.40
- Plugins & versions: ckeditor 4.4.0