Save fontColor in the template

[MAILPOET-2278]
This commit is contained in:
Amine Ben hammou
2019-10-17 08:16:55 +01:00
committed by Jack Kitterhing
parent 30b802f0c1
commit 6697424030
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import App from 'newsletter_editor/App';
import BaseBlock from 'newsletter_editor/blocks/base';
const BlockModel = BaseBlock.BlockModel.extend({
stale: ['styles'],
stale: ['styles.backgroundColor'],
defaults() {
return this._getDefaults({
type: 'woocommerceHeading',

View File

@ -20,7 +20,7 @@ Module.save = function () {
// Stringify to enable transmission of primitive non-string value types
if (!_.isUndefined(json.body)) {
delete json.body.blockDefaults.woocommerceHeading;
delete json.body.blockDefaults.woocommerceHeading.styles.backgroundColor;
delete json.body.blockDefaults.woocommerceContent;
json.body = JSON.stringify(json.body);
}