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

Created on 13 September 2024, 9 months ago

Problem/Motivation

Even if your input is focused on the body field of a node form, and you click on the "Token browser" button from the CKEditor 5 toolbar, and click on any token, the token text will be inserted in the title field of the form.

Since the Available tokens is a dialog, you can't even click back on the body field once it's open.

Steps to reproduce

Basic setup (enable on Basic HTML text format and try on the default Article) with a fresh Drupal install.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.2

Component

User interface

Created by

🇮🇹Italy kopeboy Milan

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

Comments & Activities

  • Issue created by @kopeboy
  • 🇦🇺Australia darvanen Sydney, Australia

    Confirmed behaviour.

    The very first interaction does put the token in the body textarea but any subsequent interactions placed the tokens in the title field.

    I wouldn't have the foggiest idea how to address this right now. Patches welcome.

  • 🇦🇺Australia darvanen Sydney, Australia

    Adjusting priority per Drupal standards .

    Also targeting 2.x as that's the main dev branch and we want any forks to be based on that.

  • 🇮🇳India Maninders

    Adding Parent issue, that is related to that issue. It will fix that.

  • 🇮🇹Italy kopeboy Milan

    Based on the current feedback on the parent issue, I'm putting this back to Needs work 😇

  • Status changed to Postponed 15 days ago
  • 🇦🇺Australia darvanen Sydney, Australia

    Postponing on the parent issue, thank you for finding that. Not closing this until that one is sorted in case there are follow up actions for this module.

Production build 0.71.5 2024