Remove container defaults on editor initialization
[MAILPOET-2557]
This commit is contained in:
committed by
Jack Kitterhing
parent
7dca67abf7
commit
3641062201
@ -41,9 +41,13 @@ const initializeEditor = (config) => {
|
||||
const newsletter = response.data;
|
||||
|
||||
Promise.resolve(Hooks.applyFilters('mailpoet_newsletters_editor_extend_config', config, newsletter)).then((extendedConfig) => {
|
||||
const blockDefaults = {
|
||||
...extendedConfig.blockDefaults,
|
||||
container: {},
|
||||
};
|
||||
window.EditorApplication.start({
|
||||
newsletter,
|
||||
config: extendedConfig,
|
||||
config: { ...extendedConfig, blockDefaults },
|
||||
});
|
||||
}).catch(() => {
|
||||
window.EditorApplication.start({
|
||||
|
Reference in New Issue
Block a user