Rename customHtml to html

It is not a custom field

[MAILPOET-2453]#
This commit is contained in:
Pavel Dohnal
2019-12-17 12:40:37 +01:00
committed by Rostislav Wolný
parent ff9bd232ec
commit 39e7cfa19d
8 changed files with 8 additions and 8 deletions

View File

@@ -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);

View File

@@ -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'),

View File

@@ -102,7 +102,7 @@ export default (blocks, customFields = []) => {
static: '0',
params: '',
};
case 'mailpoet-form/custom-html':
case 'mailpoet-form/html':
return {
...mapped,
id: 'html',

View File

@@ -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,