ckeditor icon indicating copy to clipboard operation
ckeditor copied to clipboard

Need to be able to prevent ckeditor from implicitly running @parseRefs

Open humandevs opened this issue 1 year ago • 0 comments

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

  1. Add a ReferenceTag to a text field and a ckeditor field.
  2. 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

humandevs avatar Dec 08 '24 14:12 humandevs