Closed ghost closed 4 years ago
I updated CKEditor to be able to add target attribute to link.
Exemple of configuration :
return [ 'options' => [ 'language' => 'en', 'plugins' => ['Link'], 'toolbar' => [ 'Heading', 'Bold', 'Italic', '-', 'Link', ], 'link' => [ 'addTargetToExternalLinks' => true, 'decorators' => [ 'isExternal' => [ 'mode' => 'manual', 'label' => 'Open in a new tab ?', 'attributes' => [ 'target' => '_blank', 'rel'=> 'noopener noreferrer' ] ], ] ], ] ];
I didn't manage to add link option for target link to the editor. Is this functionality working for anybody ? config/ckeditor5Classic.php is the only thing to update ?
It doesn’t work for me either
I updated CKEditor to be able to add target attribute to link.
Exemple of configuration :