Problem/Motivation

This is similar to the problem mentioned in https://www.drupal.org/project/token/issues/3334784
which is about the text focus issue while trying to insert the token from CkEditor5.

Steps to reproduce

1. Click on title field and title.
2. Click on Body field textarea and try inserting any token.
3. The token will be inserted on title textfield instead of body textarea.

Proposed resolution

tokenFocusedField and tokenFocusedCkeditor5 were used to set the focus. We need to set the either of the variables to null while the others were set with a value.

token issue

Issue fork token-3423115

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bala_28 created an issue. See original summary.

bala_28’s picture

StatusFileSize
new718 bytes

Added a patch to fix this issue.

vinai_katiyar’s picture

Hi @bala_28,
I followed the mentioned steps to reproduce the issue but couldn’t. Could you help me to reproduce the issue ?
Attached screenshots for references.

vinai_katiyar’s picture

Status: Active » Needs work
bala_28’s picture

StatusFileSize
new1.11 KB

Updated patch with 1.15 version

pradeepjha’s picture

Patch #5 is applied. But it's not working. Also this solution creating issue in other places where we want to focus some other element to place token.

jeremy1606 made their first commit to this issue’s fork.