Rename customHtml to html
It is not a custom field [MAILPOET-2453]#
This commit is contained in:
committed by
Rostislav Wolný
parent
ff9bd232ec
commit
39e7cfa19d
@@ -9,7 +9,7 @@ import * as submit from './submit/submit.jsx';
|
||||
import * as firstName from './first_name/first_name.jsx';
|
||||
import * as lastName from './last_name/last_name.jsx';
|
||||
import * as segmentSelect from './segment_select/segment_select.jsx';
|
||||
import * as customHtml from './custom_html/custom_html.jsx';
|
||||
import * as html from './html/html.jsx';
|
||||
|
||||
import * as customText from './custom_text/custom_text.jsx';
|
||||
import * as customTextArea from './custom_textarea/custom_textarea.jsx';
|
||||
@@ -52,7 +52,7 @@ export default () => {
|
||||
registerBlockType(firstName.name, firstName.settings);
|
||||
registerBlockType(lastName.name, lastName.settings);
|
||||
registerBlockType(segmentSelect.name, segmentSelect.settings);
|
||||
registerBlockType(customHtml.name, customHtml.settings);
|
||||
registerBlockType(html.name, html.settings);
|
||||
|
||||
if (Array.isArray(customFields)) {
|
||||
customFields.forEach(registerCustomFieldBlock);
|
||||
|
@@ -2,7 +2,7 @@ import MailPoet from 'mailpoet';
|
||||
import icon from './icon.jsx';
|
||||
import edit from './edit.jsx';
|
||||
|
||||
export const name = 'mailpoet-form/custom-html';
|
||||
export const name = 'mailpoet-form/html';
|
||||
|
||||
export const settings = {
|
||||
title: MailPoet.I18n.t('blockCustomHtml'),
|
@@ -102,7 +102,7 @@ export default (blocks, customFields = []) => {
|
||||
static: '0',
|
||||
params: '',
|
||||
};
|
||||
case 'mailpoet-form/custom-html':
|
||||
case 'mailpoet-form/html':
|
||||
return {
|
||||
...mapped,
|
||||
id: 'html',
|
||||
|
@@ -101,7 +101,7 @@ export default (data, customFields = []) => {
|
||||
case 'html':
|
||||
return {
|
||||
...mapped,
|
||||
name: 'mailpoet-form/custom-html',
|
||||
name: 'mailpoet-form/html',
|
||||
attributes: {
|
||||
content: item.params && item.params.text ? item.params.text : '',
|
||||
nl2br: item.params && item.params.nl2br ? !!item.params.nl2br : false,
|
||||
|
Reference in New Issue
Block a user