Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 2569 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 2569 Rev 2764
Línea 8... Línea 8...
8
export default function Ckeditor({
8
export default function Ckeditor({
9
  id = '',
9
  id = '',
10
  label = '',
10
  label = '',
11
  defaultValue = '',
11
  defaultValue = '',
12
  onChange = () => '',
12
  onChange = () => '',
13
  onReady = () => {}
13
  onReady = () => {},
-
 
14
  disabled
14
}) {
15
}) {
15
  return (
16
  return (
16
    <>
17
    <>
17
      {label ? <FormLabel htmlFor={id}>{label}</FormLabel> : null}
18
      {label ? <FormLabel htmlFor={id}>{label}</FormLabel> : null}
18
      <CKEditor
19
      <CKEditor
19
        editor={ClassicEditor}
20
        editor={ClassicEditor}
20
        onReady={onReady}
21
        onReady={onReady}
21
        data={defaultValue}
22
        data={defaultValue}
22
        onChange={(event, editor) => onChange(editor.getData())}
23
        onChange={(event, editor) => onChange(editor.getData())}
23
        id={id}
24
        id={id}
-
 
25
        disabled={disabled}
24
      />
26
      />
25
    </>
27
    </>
26
  )
28
  )
27
}
29
}