Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7060 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7060 Rev 7061
Línea 19... Línea 19...
19
}) => {
19
}) => {
20
  const [loading, setLoading] = useState(false)
20
  const [loading, setLoading] = useState(false)
21
  const labels = useSelector(({ intl }) => intl.labels)
21
  const labels = useSelector(({ intl }) => intl.labels)
22
  const dispatch = useDispatch()
22
  const dispatch = useDispatch()
Línea 23... Línea 23...
23
 
23
 
-
 
24
  const { handleSubmit, register, setValue, errors, getValues, watch } =
-
 
25
    useForm()
-
 
26
 
Línea 24... Línea 27...
24
  const { handleSubmit, register, setValue, errors, getValues } = useForm()
27
  const watchDescription = watch('description', '<p></p>')
25
 
28
 
26
  const onSubmit = handleSubmit((data) => {
29
  const onSubmit = handleSubmit((data) => {
27
    setLoading(true)
30
    setLoading(true)
Línea 146... Línea 149...
146
              )}
149
              )}
147
            </Form.Group>
150
            </Form.Group>
Línea 148... Línea 151...
148
 
151
 
149
            <CKEditor
152
            <CKEditor
150
              onChange={(e) => setValue('description', e.editor.getData())}
153
              onChange={(e) => setValue('description', e.editor.getData())}
151
              initData={getValues('description')}
154
              initData={watchDescription}
152
              config={CKEDITOR_OPTIONS}
155
              config={CKEDITOR_OPTIONS}
Línea 153... Línea 156...
153
            />
156
            />
154
 
157