ckeditor/ckeditor5-engine

View on GitHub
docs/_snippets/framework/extending-content-add-external-link-target.html

Summary

Maintainability
Test Coverage
<style>
    #snippet-link-external + .ck-editor .ck-content a[target="_blank"]::after {
        content: '\29C9';
    }
</style>

<div id="snippet-link-external">
    <p>External links in this <a href="https://ckeditor.com">editor</a> have a <code>target="_blank"</code>
    <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes">attribute</a> and will open in a new
    <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window">window</a>.</p>
    <p>Edit the URL of the links including "ckeditor.com" and other domains to see them marked as "internal" or "external".</p>
</div>