Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create link with target _blank #11

Merged
merged 2 commits into from Feb 17, 2020
Merged

Create link with target _blank #11

merged 2 commits into from Feb 17, 2020

Conversation

ghost
Copy link

@ghost ghost commented Oct 29, 2019

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'
                ]
            ],
          ]
        ],
    ]
];

@ablunier ablunier merged commit 1a2f045 into numaxlab:master Feb 17, 2020
giovw added a commit to giovw/nova-ckeditor5-classic that referenced this pull request Mar 11, 2020
@desaintflorent
Copy link

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 ?

@oriolfg
Copy link

oriolfg commented Sep 21, 2020

It doesn’t work for me either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants