- Issue created by @siliconandincense
- 🇦🇺Australia jannakha Brisbane!
there's a configuration in Drupal to enable target attribute which is then processed by CKEditor
target attribute is processed by CKEditor5 OOTB
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!
Active
2.3
Code
there's a configuration in Drupal to enable target attribute which is then processed by CKEditor
target attribute is processed by CKEditor5 OOTB