+
Follow us on social media:
+
+ - Facebook
+ - Twitter
+ - LinkedIn
+ - Instagram
+
+
diff --git a/packages/ckeditor5-link/docs/_snippets/features/link-providers.js b/packages/ckeditor5-link/docs/_snippets/features/link-providers.js
new file mode 100644
index 00000000000..fe429c134d9
--- /dev/null
+++ b/packages/ckeditor5-link/docs/_snippets/features/link-providers.js
@@ -0,0 +1,47 @@
+/**
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
+ */
+
+/* globals console, window, document, ClassicEditor, CS_CONFIG, CKEditorPlugins */
+
+import { TOKEN_URL } from '@ckeditor/ckeditor5-ckbox/tests/_utils/ckbox-config.js';
+
+ClassicEditor
+ .create( document.querySelector( '#snippet-link-providers' ), {
+ cloudServices: CS_CONFIG,
+ extraPlugins: [
+ CKEditorPlugins.AutoLink,
+ CKEditorPlugins.SocialLinksPlugin
+ ],
+ toolbar: {
+ items: [
+ 'undo', 'redo', '|', 'heading',
+ '|', 'bold', 'italic',
+ '|', 'link', 'insertImage', 'insertTable', 'mediaEmbed',
+ '|', 'bulletedList', 'numberedList', 'outdent', 'indent'
+ ]
+ },
+ ckbox: {
+ tokenUrl: TOKEN_URL,
+ forceDemoLabel: true
+ },
+ ui: {
+ viewportOffset: {
+ top: window.getViewportTopOffsetConfig()
+ }
+ },
+ licenseKey: 'GPL'
+ } )
+ .then( editor => {
+ window.editor = editor;
+
+ window.attachTourBalloon( {
+ target: window.findToolbarItem( editor.ui.view.toolbar, item => item.label && item.label === 'Link' ),
+ text: 'Use to access a link list.',
+ editor
+ } );
+ } )
+ .catch( err => {
+ console.error( err.stack );
+ } );
diff --git a/packages/ckeditor5-link/docs/_snippets/features/link.js b/packages/ckeditor5-link/docs/_snippets/features/link.js
index 90fcf117998..4c67a66d5ed 100644
--- a/packages/ckeditor5-link/docs/_snippets/features/link.js
+++ b/packages/ckeditor5-link/docs/_snippets/features/link.js
@@ -35,6 +35,26 @@ ClassicEditor
allowExternalImagesEditing: [ /^data:/, 'origin', /ckbox/ ],
forceDemoLabel: true
},
+ link: {
+ addTargetToExternalLinks: false,
+ decorators: [
+ {
+ mode: 'manual',
+ label: 'Downloadable',
+ attributes: {
+ download: 'download'
+ }
+ },
+ {
+ mode: 'manual',
+ label: 'Open in a new tab',
+ attributes: {
+ target: '_blank',
+ rel: 'noopener noreferrer'
+ }
+ }
+ ]
+ },
licenseKey: 'GPL'
} )
.then( editor => {
diff --git a/packages/ckeditor5-link/docs/features/link.md b/packages/ckeditor5-link/docs/features/link.md
index c1269dad100..80ad2b6de62 100644
--- a/packages/ckeditor5-link/docs/features/link.md
+++ b/packages/ckeditor5-link/docs/features/link.md
@@ -6,11 +6,11 @@ category: features
{@snippet features/build-link-source}
-The link feature lets you insert hyperlinks into your content and provides a UI to create and edit them. Thanks to the [autolink](#autolink-feature) plugin, typed or pasted URLs and email addresses automatically turn into working links.
+The link feature lets you insert hyperlinks into your content and provides a UI to create and edit them. Thanks to the [autolink](#autolink-feature) plugin, typed or pasted URLs and email addresses automatically become working links.
## Demo
-Use the link toolbar button {@icon @ckeditor/ckeditor5-link/theme/icons/link.svg Link} or press