8
0
Эх сурвалжийг харах

Fix info-box for adding HTML attribute section in extending content guide.

Maciej Gołaszewski 6 жил өмнө
parent
commit
2a2871a151

+ 2 - 9
packages/ckeditor5-engine/docs/framework/guides/deep-dive/extending-content.md

@@ -239,21 +239,14 @@ Add some CSS styles for `.my-green-link` to see the customization in action:
 In this example all links (`<a href="...">...</a>`) which do not have "ckeditor.com" in their `href="..."` get the `target="_blank"` attribute. That includes all links in the editor output (`editor.getData()`) and all links in the edited content (existing and future ones).
 
 <info-box>
-	Note that the same behavior can be obtained with {@link features/link#custom-link-attributes-decorators link decorators}:
+	Note that similar behavior can be obtained with {@link module:link/link~LinkConfig#addTargetToExternalLinks link decorators}:
 	
 	```js
 	ClassicEditor
 		.create( ..., {
 			// ...
 			link: {
-				decorators: {
-					addGreenLink: {
-						mode: 'automatic',
-						attributes: {
-							class: 'my-green-link'
-						}
-					}
-				}
+				addTargetToExternalLinks: true
 			}
 		} )
 	```