editor: Omit text property from block defaults for header and footer

This commit is contained in:
Rostislav Wolny
2018-03-14 20:15:18 +01:00
parent 1d9b4839f7
commit 3a8b64e11c
4 changed files with 12 additions and 2 deletions

View File

@@ -33,6 +33,9 @@ define([
}
}
}, App.getConfig().get('blockDefaults.footer'));
},
_updateDefaults: function updateDefaults() {
App.getConfig().set('blockDefaults.footer', _.omit(this.toJSON(), 'text'));
}
});

View File

@@ -33,6 +33,9 @@ define([
}
}
}, App.getConfig().get('blockDefaults.header'));
},
_updateDefaults: function updateDefaults() {
App.getConfig().set('blockDefaults.header', _.omit(this.toJSON(), 'text'));
}
});