@designcrowd/library.brand-page 5.16.10-kp-rte-4 → 5.16.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-BJzbMAXV.js → CreatedOnBrandCrowd-de-de-Br0lVuG3.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-CLWQ9Gfo.js → CreatedOnBrandCrowd-en-us-BUh01IwB.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-CFFFHq1j.js → CreatedOnBrandCrowd-es-es-CpsF5FnB.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-DhzBk_Gd.js → CreatedOnBrandCrowd-fr-ca-Cf9afSIR.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-DhzBk_Gd.js → CreatedOnBrandCrowd-fr-fr-Cf9afSIR.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-B9aVZ7eZ.js → CreatedOnBrandCrowd-pt-br-CFdOEKvD.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-B9aVZ7eZ.js → CreatedOnBrandCrowd-pt-pt-CFdOEKvD.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-BXfD-0WI.js → CreatedOnDcom-de-de-cmu5K1ho.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-yuMvVM1q.js → CreatedOnDcom-en-us-B268amgO.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-COqYUv-J.js → CreatedOnDcom-es-es-CfGG58vu.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DMhV-hTt.js → CreatedOnDcom-fr-ca-Bjl75MMT.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-TGXA5LtY.js → CreatedOnDcom-fr-fr-kklHfB6q.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-DiYY58fg.js → CreatedOnDcom-pt-br-D_kwlo71.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-DNgnnfi0.js → CreatedOnDcom-pt-pt-XwJDiVHY.js} +1 -1
  15. package/lib/src/brand-page/components/profile/Profile.mixin.d.ts +1 -2
  16. package/lib/src/brand-page/components/profile/Profile.mixin.js +3 -17
  17. package/lib/src/brand-page/utils/style.util.js +8 -1
  18. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.js +6 -2
  19. package/lib/src/brand-page-maker/constants/config-settings-constant.js +0 -6
  20. package/lib/src/brand-page-maker/utils/rich-text-editor.util.d.ts +0 -1
  21. package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +0 -167
  22. package/lib/src/css/library.brand-page-brandCrowd.min.css +42 -42
  23. package/lib/src/css/library.brand-page-brandPage.min.css +42 -42
  24. package/lib/src/css/library.brand-page-designCom.min.css +42 -42
  25. package/lib/src/css/library.brand-page-preview.min.css +42 -42
  26. package/lib/src/index.mjs +1 -1
  27. package/lib/src/{lib-BisB-7Kr.js → lib-l_4XUq5L.js} +11979 -12145
  28. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.js +6 -2
  29. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +8 -1
  30. package/package.json +1 -1
  31. package/src/brand-page/components/mailing-list/MailingList.vue +0 -1
  32. package/src/brand-page/components/profile/Profile.mixin.ts +4 -16
  33. package/src/brand-page/components/profile/Profile.vue +1 -4
  34. package/src/brand-page/utils/style.util.ts +8 -4
  35. package/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.ts +6 -5
  36. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +1 -1
  37. package/src/brand-page-maker/constants/config-settings-constant.ts +0 -6
  38. package/src/brand-page-maker/utils/rich-text-editor.util.ts +0 -297
  39. package/src/shared/content-settings/components/content-settings/ContentSettings.mixin.ts +5 -2
  40. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +7 -1
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BisB-7Kr.js";
2
+ import { _ as t } from "./lib-l_4XUq5L.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BisB-7Kr.js";
2
+ import { _ as t } from "./lib-l_4XUq5L.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BisB-7Kr.js";
2
+ import { _ as t } from "./lib-l_4XUq5L.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BisB-7Kr.js";
2
+ import { _ as t } from "./lib-l_4XUq5L.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BisB-7Kr.js";
2
+ import { _ as t } from "./lib-l_4XUq5L.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BisB-7Kr.js";
2
+ import { _ as t } from "./lib-l_4XUq5L.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-BisB-7Kr.js";
2
+ import { _ as t } from "./lib-l_4XUq5L.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BisB-7Kr.js";
2
+ import { _ as e } from "./lib-l_4XUq5L.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BisB-7Kr.js";
2
+ import { _ as e } from "./lib-l_4XUq5L.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BisB-7Kr.js";
2
+ import { _ as e } from "./lib-l_4XUq5L.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BisB-7Kr.js";
2
+ import { _ as e } from "./lib-l_4XUq5L.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-BisB-7Kr.js";
2
+ import { _ as e } from "./lib-l_4XUq5L.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-BisB-7Kr.js";
2
+ import { _ as M } from "./lib-l_4XUq5L.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-BisB-7Kr.js";
2
+ import { _ as M } from "./lib-l_4XUq5L.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -17,8 +17,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
17
  };
18
18
  }>, {}, {}, {
19
19
  containerStyle(): BrandPageCssStyle;
20
- renderDescriptionText(): string;
21
- hasDescriptionText(): boolean;
20
+ renderDescriptionText(): string | undefined;
22
21
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
22
  viewModel: {
24
23
  type: PropType<ProfileViewModel>;
@@ -1,6 +1,5 @@
1
1
  import { defineComponent } from 'vue';
2
- import { getRenderText, escapeContentText } from '../../utils';
3
- import { hasRTEContent } from '../../../brand-page-maker/utils/rich-text-editor.util';
2
+ import { getRenderText } from '../../utils';
4
3
  export default defineComponent({
5
4
  props: {
6
5
  viewModel: {
@@ -23,22 +22,9 @@ export default defineComponent({
23
22
  },
24
23
  renderDescriptionText() {
25
24
  if (!this.viewModel?.description) {
26
- return '';
27
- }
28
- if (hasRTEContent(this.viewModel.description)) {
29
- return this.viewModel.description;
30
- }
31
- else {
32
- return getRenderText(this.viewModel.description);
33
- }
34
- },
35
- hasDescriptionText() {
36
- if (hasRTEContent(this.viewModel.description)) {
37
- return escapeContentText(this.viewModel.description) !== '';
38
- }
39
- else {
40
- return this.viewModel?.description?.length > 0;
25
+ return undefined;
41
26
  }
27
+ return getRenderText(this.viewModel.description);
42
28
  },
43
29
  },
44
30
  });
@@ -5,7 +5,7 @@ import { arrayToLinearGradient, linearGradientToArray, isColorLinearGradient, RG
5
5
  import { addTransparentAlphaChannelToHex, calculateLuminanceRatio, getNewColorBasedOnTargetColorTheme, } from './color.util';
6
6
  import { isRgbColor } from '../../utils/helpers';
7
7
  import chroma from 'chroma-js';
8
- import { hasRTEContent, RTE_ALLOWED_SECTION_TYPES, } from '../../brand-page-maker/utils';
8
+ import { hasRTEContent } from '../../brand-page-maker/utils';
9
9
  /**
10
10
  * Simple utility to convert any color format to hex for consistent comparison
11
11
  */
@@ -225,6 +225,13 @@ const CONTENT_STYLE_PROP_NAME_SUFFIX = [
225
225
  'Color',
226
226
  'Replacements',
227
227
  ];
228
+ const RTE_ALLOWED_SECTION_TYPES = [
229
+ 'text',
230
+ 'banner-section',
231
+ 'booking-section',
232
+ 'images-section',
233
+ 'shapes-section',
234
+ ];
228
235
  const RTE_ALLOWED_FIELDS = ['title', 'description', 'text', 'textItems'];
229
236
  export const applyLogoThemeToContents = (logoTheme, pages) => {
230
237
  let isModified = false;
@@ -11,7 +11,7 @@ import { useUiPageSettingsStore } from '../../../shared/page-settings/store';
11
11
  import { PAGE_SECTIONS } from '../../../shared/page-settings/models';
12
12
  import { EVENTS, SELECT_LOCATIONS, useEventTracker, } from '../../../brand-page-maker/composables/useEventTracker';
13
13
  import debounce from 'lodash.debounce';
14
- import { transformToRTE, RTE_ALLOWED_SECTION_TYPES, } from '../../../brand-page-maker/utils';
14
+ import { transformToRTE } from '../../../brand-page-maker/utils';
15
15
  import { useExternalRichTextEditor } from '../../../brand-page-maker/composables/rich-text-editor/useRichTextEditor';
16
16
  import { useUiStyleSettingsStore } from '../../../shared/style-settings/store';
17
17
  import { STYLE_THEME_KEYS } from '../../../brand-page/constants';
@@ -205,7 +205,11 @@ export default defineComponent({
205
205
  this.isHeaderSelected = false;
206
206
  this.isFooterSelected = false;
207
207
  this.isContentSelected = true;
208
- if (RTE_ALLOWED_SECTION_TYPES.includes(item.type) &&
208
+ if ((item.type === 'banner-section' ||
209
+ item.type === 'booking-section' ||
210
+ item.type === 'images-section' ||
211
+ item.type === 'shapes-section' ||
212
+ item.type === 'text') &&
209
213
  this.canUseRichTextEditor) {
210
214
  let selectedItem = item;
211
215
  if (this.isAdmin) {
@@ -575,10 +575,8 @@ export const PROFILE_CONTENT_SETTINGS_CONFIG = () => ({
575
575
  },
576
576
  name: {
577
577
  type: 'text',
578
- title: contentSettingsTr(`nameTitle`),
579
578
  groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
580
579
  placeholder: contentSettingsTr(`yourNamePlaceholder`),
581
- maxLength: 200,
582
580
  },
583
581
  nameOverride: {
584
582
  type: 'personalisation-override',
@@ -588,9 +586,7 @@ export const PROFILE_CONTENT_SETTINGS_CONFIG = () => ({
588
586
  title: {
589
587
  type: 'text',
590
588
  groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
591
- title: contentSettingsTr(`titleTitle`),
592
589
  placeholder: contentSettingsTr(`titlePlaceholder`),
593
- maxLength: 200,
594
590
  },
595
591
  titleOverride: {
596
592
  type: 'personalisation-override',
@@ -600,10 +596,8 @@ export const PROFILE_CONTENT_SETTINGS_CONFIG = () => ({
600
596
  description: {
601
597
  type: 'textarea',
602
598
  groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
603
- title: contentSettingsTr(`defaultDescription`),
604
599
  placeholder: contentSettingsTr(`textAreaDescriptionPlaceholder`),
605
600
  defaultValue: '',
606
- maxLength: 2000,
607
601
  },
608
602
  descriptionOverride: {
609
603
  type: 'personalisation-override',
@@ -5,7 +5,6 @@ import type { PageSettingsState } from '../../shared/page-settings/store';
5
5
  import type { StyleSettingsState } from '../../shared/style-settings/store';
6
6
  import type { Mark } from 'prosemirror-model';
7
7
  import { type DOMPurify } from 'dompurify';
8
- export declare const RTE_ALLOWED_SECTION_TYPES: string[];
9
8
  export declare const isStyleChanged: (tr: Transaction) => boolean;
10
9
  export declare const skipStyleDetection: (chain: ChainedCommands, marks?: Mark[]) => ChainedCommands;
11
10
  export declare const hasRTEContent: (content: string) => boolean;
@@ -2,15 +2,6 @@ import { STYLE_THEME_KEYS, } from '../../brand-page';
2
2
  import { ESCAPED_NEWLINE_CHARACTER } from '../../constants/ui';
3
3
  import { getRenderText } from '../../brand-page/utils';
4
4
  import createDomPurify, {} from 'dompurify';
5
- export const RTE_ALLOWED_SECTION_TYPES = [
6
- 'banner-section',
7
- 'text',
8
- 'booking-section',
9
- 'images-section',
10
- 'shapes-section',
11
- 'mailing-list',
12
- 'profile',
13
- ];
14
5
  // Only allow tags used by the enabled Tiptap extensions
15
6
  const allowedTags = [
16
7
  'p',
@@ -384,92 +375,6 @@ export const transformToRTE = (uiPageSettingStore, externalEditor, uiStyleSettin
384
375
  }
385
376
  }
386
377
  break;
387
- case 'profile':
388
- const profileContent = contentItem.settings.content;
389
- const nameStyleType = profileContent.nameStyle.textStyleType;
390
- const profileTitleStyleType = profileContent.titleStyle.textStyleType;
391
- const profileDescriptionTextStyleType = profileContent.descriptionStyle.textStyleType;
392
- if (nameStyleType &&
393
- (nameStyleType === type || uiStyleSettingsStore)) {
394
- let globalContentStyle = uiStyleSettingsStore
395
- ? uiStyleSettingsStore.textStyles.textStyleOptions[nameStyleType]
396
- .style
397
- : newStyle ?? {};
398
- globalContentStyle = {
399
- ...globalContentStyle,
400
- textAlign: profileContent.nameStyle.textAlign,
401
- };
402
- profileContent.name = getUpdatedHTMLFromEditor(externalEditor, profileContent.name, globalContentStyle);
403
- }
404
- else if (!nameStyleType &&
405
- newContent &&
406
- newContent.id === profileContent.id &&
407
- !hasRTEContent(profileContent.name)) {
408
- const newContentStyle = newContent.nameStyle;
409
- profileContent.name = getUpdatedHTMLFromEditor(externalEditor, profileContent.name, newContentStyle);
410
- }
411
- if (profileTitleStyleType &&
412
- (profileTitleStyleType === type || uiStyleSettingsStore)) {
413
- let globalContentStyle = uiStyleSettingsStore
414
- ? uiStyleSettingsStore.textStyles.textStyleOptions[profileTitleStyleType].style
415
- : newStyle ?? {};
416
- globalContentStyle = {
417
- ...globalContentStyle,
418
- textAlign: profileContent.titleStyle.textAlign,
419
- };
420
- profileContent.title = getUpdatedHTMLFromEditor(externalEditor, profileContent.title, globalContentStyle);
421
- }
422
- else if (!profileTitleStyleType &&
423
- newContent &&
424
- newContent.id === profileContent.id &&
425
- !hasRTEContent(profileContent.title)) {
426
- const newContentStyle = newContent.titleStyle;
427
- profileContent.title = getUpdatedHTMLFromEditor(externalEditor, profileContent.title, newContentStyle);
428
- }
429
- if (profileDescriptionTextStyleType &&
430
- (profileDescriptionTextStyleType === type || uiStyleSettingsStore)) {
431
- let globalContentStyle = uiStyleSettingsStore
432
- ? uiStyleSettingsStore.textStyles.textStyleOptions[profileDescriptionTextStyleType].style
433
- : newStyle ?? {};
434
- globalContentStyle = {
435
- ...globalContentStyle,
436
- textAlign: profileContent.descriptionStyle.textAlign,
437
- };
438
- profileContent.description = getUpdatedHTMLFromEditor(externalEditor, profileContent.description, globalContentStyle);
439
- }
440
- else if (!profileDescriptionTextStyleType &&
441
- newContent &&
442
- newContent.id === profileContent.id &&
443
- !hasRTEContent(profileContent.description)) {
444
- const newContentStyle = newContent
445
- .descriptionStyle;
446
- profileContent.description = getUpdatedHTMLFromEditor(externalEditor, profileContent.description, newContentStyle);
447
- }
448
- break;
449
- case 'mailing-list':
450
- const mailingListContent = contentItem.settings.content;
451
- const mailingPromptTextStyleType = mailingListContent.promptTextStyle
452
- .textStyleType;
453
- debugger;
454
- if (mailingPromptTextStyleType &&
455
- (mailingPromptTextStyleType === type || uiStyleSettingsStore)) {
456
- let globalContentStyle = uiStyleSettingsStore
457
- ? uiStyleSettingsStore.textStyles.textStyleOptions[mailingPromptTextStyleType].style
458
- : newStyle ?? {};
459
- globalContentStyle = {
460
- ...globalContentStyle,
461
- textAlign: mailingListContent.promptTextStyle.textAlign,
462
- };
463
- mailingListContent.promptText = getUpdatedHTMLFromEditor(externalEditor, mailingListContent.promptText, globalContentStyle);
464
- }
465
- else if (!mailingPromptTextStyleType &&
466
- newContent &&
467
- newContent.id === mailingListContent.id &&
468
- !hasRTEContent(mailingListContent.promptText)) {
469
- const newContentStyle = newContent.promptTextStyle;
470
- mailingListContent.promptText = getUpdatedHTMLFromEditor(externalEditor, mailingListContent.promptText, newContentStyle);
471
- }
472
- break;
473
378
  }
474
379
  }
475
380
  }
@@ -596,78 +501,6 @@ export const switchAllContentToRTE = (uiPageSettingStore, externalEditor, uiStyl
596
501
  }
597
502
  }
598
503
  break;
599
- case 'profile':
600
- const profileContent = contentItem.settings.content;
601
- const nameStyleType = profileContent.nameStyle.textStyleType;
602
- const profileTitleStyleType = profileContent.titleStyle.textStyleType;
603
- const profileDescriptionTextStyleType = profileContent.descriptionStyle.textStyleType;
604
- if (nameStyleType && uiStyleSettingsStore) {
605
- let globalContentStyle = uiStyleSettingsStore.textStyles
606
- .textStyleOptions[nameStyleType].style;
607
- globalContentStyle = {
608
- ...globalContentStyle,
609
- textAlign: profileContent.nameStyle.textAlign,
610
- };
611
- if (!hasRTEContent(profileContent.name))
612
- profileContent.name = getUpdatedHTMLFromEditor(externalEditor, profileContent.name, globalContentStyle);
613
- }
614
- else if (!nameStyleType && !hasRTEContent(profileContent.name)) {
615
- const newContentStyle = profileContent.nameStyle;
616
- profileContent.name = getUpdatedHTMLFromEditor(externalEditor, profileContent.name, newContentStyle);
617
- }
618
- if (profileTitleStyleType && uiStyleSettingsStore) {
619
- let globalContentStyle = uiStyleSettingsStore.textStyles
620
- .textStyleOptions[profileTitleStyleType]
621
- .style;
622
- globalContentStyle = {
623
- ...globalContentStyle,
624
- textAlign: profileContent.titleStyle.textAlign,
625
- };
626
- if (!hasRTEContent(profileContent.title))
627
- profileContent.title = getUpdatedHTMLFromEditor(externalEditor, profileContent.title, globalContentStyle);
628
- }
629
- else if (!profileTitleStyleType &&
630
- !hasRTEContent(profileContent.title)) {
631
- const newContentStyle = profileContent.titleStyle;
632
- profileContent.title = getUpdatedHTMLFromEditor(externalEditor, profileContent.title, newContentStyle);
633
- }
634
- if (profileDescriptionTextStyleType && uiStyleSettingsStore) {
635
- let globalContentStyle = uiStyleSettingsStore.textStyles
636
- .textStyleOptions[profileDescriptionTextStyleType]
637
- .style;
638
- globalContentStyle = {
639
- ...globalContentStyle,
640
- textAlign: profileContent.descriptionStyle.textAlign,
641
- };
642
- if (!hasRTEContent(profileContent.description))
643
- profileContent.description = getUpdatedHTMLFromEditor(externalEditor, profileContent.description, globalContentStyle);
644
- }
645
- else if (!profileDescriptionTextStyleType &&
646
- !hasRTEContent(profileContent.description)) {
647
- const newContentStyle = profileContent.descriptionStyle;
648
- profileContent.description = getUpdatedHTMLFromEditor(externalEditor, profileContent.description, newContentStyle);
649
- }
650
- break;
651
- case 'mailing-list':
652
- const mailingListContent = contentItem.settings
653
- .content;
654
- const titleStyleType = mailingListContent.titleStyle.textStyleType;
655
- if (titleStyleType && uiStyleSettingsStore) {
656
- let globalContentStyle = uiStyleSettingsStore.textStyles
657
- .textStyleOptions[titleStyleType].style;
658
- globalContentStyle = {
659
- ...globalContentStyle,
660
- textAlign: mailingListContent.titleStyle.textAlign,
661
- };
662
- if (!hasRTEContent(mailingListContent.promptText))
663
- mailingListContent.promptText = getUpdatedHTMLFromEditor(externalEditor, mailingListContent.promptText, globalContentStyle);
664
- }
665
- else if (!titleStyleType &&
666
- !hasRTEContent(mailingListContent.promptText)) {
667
- const newContentStyle = mailingListContent.titleStyle;
668
- mailingListContent.promptText = getUpdatedHTMLFromEditor(externalEditor, mailingListContent.promptText, newContentStyle);
669
- }
670
- break;
671
504
  }
672
505
  }
673
506
  }