Token browser invoked by CKEditor5 button will insert tokens in the Title field

Created on 1 October 2024, 7 months ago

Problem/Motivation

If i add a new paragraph OR New Content (Basic page Or Article) with a ckeditor field, then click into the ckeditor field and open the token modal. Any tokens added get added to the title.

Steps to reproduce

If You go to > Add Content > Paragraph click on CkEditor, then click on Token browses option, then click on any of the token. It will add on CkEditor.
But if in between you click on title field and then click on Token browser, then it will append only on title field only.
For that We have to save the node and then edit the node and then after edit you can click on CkEditor Token browser option and then token will render on CkEditor.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

1.15

Component

Code

Created by

🇮🇳India Maninders

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @Maninders
  • Merge request !83Token Issue fixed for title. → (Open) created by Maninders
  • Pipeline finished with Success
    7 months ago
    Total: 189s
    #297731
  • 🇮🇳India Maninders

    Created MR for the fix of this, so it will not insert tokens in the Title field.
    Created a video after that fix, adding in the ticket.

  • 🇦🇺Australia darvanen Sydney, Australia

    We want the token browser to be *capable* of inserting tokens into other fields, it would be a usability regression to remove that. Beyond that, forcing it to choose the body by removing all other targets is not going to hold up when there are multiple text_area fields capable of being targeted.

    We need to find a way to avoid having the target move around when the user is interacting with the browser.

    I suspect this is a bug in token_filter's browser rather than the token module.

Production build 0.71.5 2024