Documentation / Settings

Link

target #

Type: Boolean, String

Default: false

When set it to _blank, all inserted links will get a target attribute and be able to open in the new tab.

Redactor('#entry', {
    link: {
        target: '_blank'
    }
});

nofollow #

Type: Boolean

Default: false

When set it to true, all links inside of Redactor will get a nofollow attribute. This attribute restricts search engines indexing for these links.

Redactor('#entry', {
    link: {
        nofollow: true
    }
});

size #

Type: Number

Default: 30

This setting allows to automatically truncate link text.

Redactor('#entry', {
    link: {
        size: 60
    }
});