diff --git a/src/app/[slug]/page.tsx b/src/app/[slug]/page.tsx index 0c41031..269fc80 100644 --- a/src/app/[slug]/page.tsx +++ b/src/app/[slug]/page.tsx @@ -108,13 +108,13 @@ export default async function NoticiaDetail({ params }: { params: Promise<{ slug )}
diff --git a/src/app/actions/entities.ts b/src/app/actions/entities.ts index 4debc19..fced2a2 100644 --- a/src/app/actions/entities.ts +++ b/src/app/actions/entities.ts @@ -11,7 +11,7 @@ import DOMPurify from 'isomorphic-dompurify'; const safeHtmlSchema = z.string().transform(html => DOMPurify.sanitize(html, { ADD_TAGS: ['iframe'], - ADD_ATTR: ['allow', 'allowfullscreen', 'frameborder', 'scrolling'] + ADD_ATTR: ['allow', 'allowfullscreen', 'frameborder', 'scrolling', 'style', 'class'] }) ); diff --git a/src/components/dashboard/RichTextEditor.tsx b/src/components/dashboard/RichTextEditor.tsx index 3c2ff5e..b4b6765 100644 --- a/src/components/dashboard/RichTextEditor.tsx +++ b/src/components/dashboard/RichTextEditor.tsx @@ -250,7 +250,7 @@ export const RichTextEditor = ({ value, onChange, label }: RichTextEditorProps) }, editorProps: { attributes: { - class: 'prose prose-invert max-w-none focus:outline-none min-h-[300px] p-6 text-slate-200 leading-relaxed custom-scrollbar', + class: 'prose prose-invert max-w-none focus:outline-none min-h-[300px] p-6 text-slate-200 leading-relaxed custom-scrollbar whitespace-pre-wrap break-words prose-p:empty:before:content-["\\00a0"]', }, }, });