|
|
|
@ -116,7 +116,13 @@ class BackgroundSelect extends React.Component {
|
|
|
|
|
? `background: url(${this.props.config.backgroundImage});
|
|
|
|
|
background-size: cover;
|
|
|
|
|
background-repeat: no-repeat;`
|
|
|
|
|
: `background: ${this.props.config.backgroundColor || config.backgroundColor};
|
|
|
|
|
: `background: ${(this.props.config.backgroundColor || config.backgroundColor)
|
|
|
|
|
.replace(/&/g, '&')
|
|
|
|
|
.replace(/</g, '<')
|
|
|
|
|
.replace(/>/g, '>')
|
|
|
|
|
.replace(/"/g, '"')
|
|
|
|
|
.replace(/'/g, ''')
|
|
|
|
|
.replace(/\//g, '/')};
|
|
|
|
|
background-size: auto;
|
|
|
|
|
background-repeat: repeat;`};
|
|
|
|
|
}
|
|
|
|
|