From f0e5e07386f3080bb28780740418d1c0c6561a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Wed, 23 Jul 2025 12:21:43 +0400 Subject: [PATCH] =?UTF-8?q?feat:=20int=C3=A8gre=20=C3=A9diteur=20riche=20p?= =?UTF-8?q?our=20articles=20uniquement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/konstitisyon/form-handler.js | 41 ++++++++++++++++--------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/components/konstitisyon/form-handler.js b/components/konstitisyon/form-handler.js index d3dee41..12cd06b 100644 --- a/components/konstitisyon/form-handler.js +++ b/components/konstitisyon/form-handler.js @@ -8,6 +8,7 @@ import DialogActions from '@mui/material/DialogActions' import DialogContent from '@mui/material/DialogContent' import DialogContentText from '@mui/material/DialogContentText' import DialogTitle from '@mui/material/DialogTitle' +import RichTextEditor from '../rich-text-editor/index.js' import SessionExpired from '../session/session-expired.js' import ListItems from './create/list-items.js' @@ -24,7 +25,8 @@ export default function FormHandler({ handleFormSubmit, countdownRef, setSelectValue, - contenu + contenu, + collection }) { const handleClose = () => { setIsOpen(false) @@ -52,18 +54,28 @@ export default function FormHandler({ setSelectValue={setSelectValue} /> )} - + {hasMultiline && collection === 'articles' ? ( + + ) : ( + + )} @@ -88,5 +100,6 @@ FormHandler.propTypes = { label: PropTypes.string.isRequired, hasMultiline: PropTypes.bool, listItems: PropTypes.array.isRequired, - contenu: PropTypes.string + contenu: PropTypes.string, + collection: PropTypes.string }