Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2043 Rev 3192
Línea -... Línea 1...
-
 
1
/* eslint-disable react/prop-types */
1
import React, { useState, useEffect } from "react";
2
import React, { useState, useEffect } from "react";
2
import { connect } from "react-redux";
3
import { connect } from "react-redux";
3
import { Button, Modal } from "react-bootstrap";
4
import { Button, Modal } from "react-bootstrap";
4
import { useForm } from "react-hook-form";
5
import { useForm } from "react-hook-form";
5
import styled from "styled-components";
6
import styled from "styled-components";
Línea 262... Línea 263...
262
            <CKEditor
263
            <CKEditor
263
              data={watch("description")}
264
              data={watch("description")}
264
              onChange={(e) => {
265
              onChange={(e) => {
265
                const text = e.editor.getData();
266
                const text = e.editor.getData();
266
                setValue("description", text);
267
                setValue("description", text);
267
                if (errors.description && getValues(description)) {
268
                if (errors.description && getValues('description')) clearErrors("description")
268
                  clearErrors("description");
-
 
269
                }
-
 
270
              }}
269
              }}
271
              config={CKEDITOR_OPTIONS}
270
              config={CKEDITOR_OPTIONS}
272
              name="description"
271
              name="description"
273
              onBeforeLoad={() => {
272
              onBeforeLoad={() => {
274
                setIsCKEditorLoading(false);
273
                setIsCKEditorLoading(false);