diff --git a/apps/frontend/src/app/global.scss b/apps/frontend/src/app/global.scss index 8b304d79..fb46e49e 100644 --- a/apps/frontend/src/app/global.scss +++ b/apps/frontend/src/app/global.scss @@ -559,6 +559,10 @@ html[dir='rtl'] [dir='ltr'] { font-weight: bold; } +.ProseMirror * { + white-space: break-spaces; +} + .ProseMirror h2, .preview h2 { font-size: 20px; font-weight: bold; diff --git a/apps/frontend/src/components/launches/general.preview.component.tsx b/apps/frontend/src/components/launches/general.preview.component.tsx index 51ff2ac8..a91e31a3 100644 --- a/apps/frontend/src/components/launches/general.preview.component.tsx +++ b/apps/frontend/src/components/launches/general.preview.component.tsx @@ -48,8 +48,6 @@ export const GeneralPreviewComponent: FC<{ return { text: finalValue, images: p.image }; }); - console.log(renderContent); - return (
diff --git a/apps/frontend/src/components/new-launch/manage.modal.tsx b/apps/frontend/src/components/new-launch/manage.modal.tsx index 27e35673..626e4506 100644 --- a/apps/frontend/src/components/new-launch/manage.modal.tsx +++ b/apps/frontend/src/components/new-launch/manage.modal.tsx @@ -189,14 +189,15 @@ export const ManageModal: FC = (props) => { const sliceNeeded = checkAllValid.filter((p: any) => { return p.values.some((a: any) => { + const strip = stripHtmlValidation('normal', a.content, true); const weightedLength = countCharacters( - a.content, + strip, p?.integration?.identifier || '' ); const totalCharacters = - weightedLength > a.content.length + weightedLength > strip.length ? weightedLength - : a.content.length; + : strip.length; return totalCharacters > (p.maximumCharacters || 1000000); });