Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fix info-box for adding HTML attribute section in extending content g…
Browse files Browse the repository at this point in the history
…uide.
  • Loading branch information
jodator committed Jul 17, 2019
1 parent d08e97c commit a350b06
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions docs/framework/guides/deep-dive/extending-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
} )
```
Expand Down

0 comments on commit a350b06

Please sign in to comment.