Fix saving class name attributes for divider and custom html blocks
[MAILPOET-2746]
This commit is contained in:
committed by
Veljko V
parent
162b968f09
commit
e9c3049576
@@ -228,7 +228,9 @@ export const blocksToFormBodyFactory = (colorDefinitions, customFields = []) =>
|
||||
id: 'divider',
|
||||
type: 'divider',
|
||||
name: 'Divider',
|
||||
params: '',
|
||||
params: {
|
||||
class_name: block.attributes.className || null,
|
||||
},
|
||||
};
|
||||
case 'mailpoet-form/html':
|
||||
return {
|
||||
@@ -239,6 +241,7 @@ export const blocksToFormBodyFactory = (colorDefinitions, customFields = []) =>
|
||||
params: {
|
||||
text: block.attributes && block.attributes.content ? block.attributes.content : '',
|
||||
nl2br: block.attributes && block.attributes.nl2br ? '1' : '0',
|
||||
class_name: block.attributes.className || null,
|
||||
},
|
||||
};
|
||||
default:
|
||||
|
Reference in New Issue
Block a user