Documentation / Settings

Embed

classname #

Type: String

Default: embed-content

This setting allows you to change the class that can be added for any embed.

Redactor('#entry', {
    embed: {
        classname: 'my-embed-video'
    }
});

responsiveClassname #

Type: String

Default: embed-responsive

This setting allows you to change the class that can be added when inserting a responsive video.

Redactor('#entry', {
    embed: {
        responsiveClassname: 'my-responsive-video'
    }
});

responsive #

Type: Boolean

Default: false

This setting turns on the responsive video checkbox.

Redactor('#entry', {
    embed: {
        responsive: true
    }
});

script #

Type: Boolean

Default: true

This setting removes the script tag when inserting embed code.

Redactor('#entry', {
    embed: {
        script: false
    }
});

disable #

You can completely disable embed adding, for this, set the setting to false.

Redactor('#entry', {
    embed: false
});