Documentation / Settings

Colorpicker

size #

Type: String, Boolean

Default: false

Changes the size of color swatches in colorpicker. The value large makes them 32px.


Redactor('#entry', {
    colorpicker: {
        size: 'large'
    }
});

width #

Type: String, Boolean

Default: false

Sets the width of the colorpicker.


Redactor('#entry', {
    colorpicker: {
        width: '320px'
    }
});

wrap #

Type: Boolean

Default: false

Sets the 'flex-wrap' of color groups.


Redactor('#entry', {
    colorpicker: {
        wrap: true
    }
});

row #

Type: Boolean

Default: false

Sets the color groups to be displayed in rows. By default, color groups are arranged in columns.


Redactor('#entry', {
    colorpicker: {
        row: true
    }
});