Fix Email composer rich text to HTML conversion (#19872)
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ export const EmailComposerFields = ({
|
||||
placeholder={t`Type something or press "/" to see commands`}
|
||||
minHeight={120}
|
||||
maxWidth={600}
|
||||
contentType="json"
|
||||
contentType="html"
|
||||
/>
|
||||
<EmailAttachmentsField
|
||||
label={t`Attachments`}
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import { marked } from 'marked';
|
||||
import { type DependencyList, useMemo } from 'react';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
|
||||
export type AdvancedTextEditorContentType = 'json' | 'markdown';
|
||||
export type AdvancedTextEditorContentType = 'json' | 'html' | 'markdown';
|
||||
|
||||
type UseAdvancedTextEditorProps = {
|
||||
placeholder: string | undefined;
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ export const FormAdvancedTextFieldInput = ({
|
||||
defaultValue,
|
||||
contentType,
|
||||
onUpdate: (editor) => {
|
||||
if (contentType === 'markdown') {
|
||||
if (contentType === 'markdown' || contentType === 'html') {
|
||||
onChange(editor.getHTML());
|
||||
} else {
|
||||
const jsonContent = editor.getJSON();
|
||||
|
||||
Reference in New Issue
Block a user