Missing target entry in utils

Created on 2 July 2025, 10 days ago

Hi there, apologies if this has been covered elsewhere.

I started using this module with the main intent of integrating it into my own custom ckeditor 5 plugin, and I noticed that I'm unable to set target on a link:

const linkText = writer.createText(
  'Directions',
  {
    linkHref: 'some href here',
    linkClass: 'btn',
    linkTarget: '_blank',
  }
);

However if I add

linkTarget: {
    label: Drupal.t('Link Target'),
    viewAttribute: 'target',
    group: 'advanced',
  },

to /js/ckeditor5_plugins/editorAdvancedLink/src/utils.js and build, target starts working fine.

Thanks!

🐛 Bug report
Status

Active

Version

2.3

Component

Code

Created by

🇬🇧United Kingdom siliconandincense

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

Comments & Activities

Production build 0.71.5 2024