Rev 2569 | AutorÃa | Ultima modificación | Ver Log |
import React from 'react'import { CKEditor } from '@ckeditor/ckeditor5-react'import { FormLabel } from '@mui/material'import 'ckeditor5.css'import ClassicEditor from '../ckeditor/ClassicEditor'export default function Ckeditor({id = '',label = '',defaultValue = '',onChange = () => '',onReady = () => {},disabled}) {return (<>{label ? <FormLabel htmlFor={id}>{label}</FormLabel> : null}<CKEditoreditor={ClassicEditor}onReady={onReady}data={defaultValue}onChange={(event, editor) => onChange(editor.getData())}id={id}disabled={disabled}/></>)}