@@ -4,6 +4,7 @@ import { When } from '@/components/hoc/When'
44import { useAppState } from '@/hooks/useAppState'
55import { calculateFileSize } from '@/utils/calculateFileSize'
66import { defaultBannerImagePath } from '@/utils/constants'
7+ import { replaceCustomLabelsWithPlaceholders } from '@/utils/customLabels'
78import { getFont } from '@/utils/font'
89import { handleBannerImageUpload } from '@/utils/handleBannerImageUpload'
910import { ImagePickerUtils } from '@/utils/imagePickerUtils'
@@ -40,8 +41,10 @@ export const Footer = () => {
4041 const handleSave = async ( ) => {
4142 setSaving ( true )
4243 //get editor content
43- const content = appState ?. appState . editor ?. getHTML ( ) || ''
44-
44+ const content = replaceCustomLabelsWithPlaceholders (
45+ appState ?. appState . editor ?. getHTML ( ) || '' ,
46+ appState ?. appState . customLabels ,
47+ )
4548 let payload = { }
4649 const bgColor = appState ?. appState . editorColor || '#ffffff'
4750
@@ -67,7 +70,7 @@ export const Footer = () => {
6770 )
6871 payload = {
6972 backgroundColor : bgColor ,
70- content : content ,
73+ content,
7174 bannerImageId : data ?. id ,
7275 token : appState ?. appState . token ,
7376 displayTasks : appState ?. appState . displayTasks ,
@@ -80,7 +83,7 @@ export const Footer = () => {
8083 if ( ! appState ?. appState . bannerImgUrl ) {
8184 payload = {
8285 backgroundColor : bgColor ,
83- content : content ,
86+ content,
8487 token : appState ?. appState . token ,
8588 bannerImageId : null ,
8689 displayTasks : appState ?. appState . displayTasks ,
0 commit comments