|
|
@@ -38,7 +38,7 @@ By default, all links created in the editor have the `href="..."` attribute in t
|
|
|
|
|
|
### Demo
|
|
|
|
|
|
-In the editor below, all **external** links get the `target="_blank"` and `rel="noopener noreferrer"` attributes ([automatic decorator](#adding-attributes-to-links-based-on-predefined-rules-automatic-decorators)). Click a link and edit it to see that it is possible to control the `downloadable` attribute of specific links using the switch button in the editing balloon ([manual decorator](#adding-attributes-to-links-using-the-ui-manual-decorators)). Take a look at the editor data below (updated live) to see the additional link attributes.
|
|
|
+In the editor below, all **external** links get the `target="_blank"` and `rel="noopener noreferrer"` attributes ([automatic decorator](#adding-attributes-to-links-based-on-predefined-rules-automatic-decorators)). Click a link and edit it to see that it is possible to control the `download` attribute of specific links using the switch button in the editing balloon ([manual decorator](#adding-attributes-to-links-using-the-ui-manual-decorators)). Take a look at the editor data below (updated live) to see the additional link attributes.
|
|
|
|
|
|
{@snippet features/linkdecorators}
|
|
|
|
|
|
@@ -57,7 +57,7 @@ ClassicEditor
|
|
|
// Automatically add target="_blank" and rel="noopener noreferrer" to all external links.
|
|
|
addTargetToExternalLinks: true,
|
|
|
|
|
|
- // Allow users control the "downloadable" attribute of each link.
|
|
|
+ // Allow users control the "download" attribute of each link.
|
|
|
decorators: [
|
|
|
{
|
|
|
mode: 'manual',
|