Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2042 Rev 2044
Línea 1... Línea 1...
1
import React from "react";
1
import React from "react";
2
import { useState, useEffect } from "react";
2
import { useState, useEffect } from "react";
3
import { Button, Modal } from "react-bootstrap";
3
import { Button, Modal } from "react-bootstrap";
4
import { useForm } from "react-hook-form";
4
import { useForm } from "react-hook-form";
5
import styled from "styled-components";
5
import styled from "styled-components";
6
import {axios} from "../../../../../../utils";
6
import {axios, CKEDITOR_OPTIONS} from "../../../../../../utils";
7
import FormErrorFeedback from "../../../../../../shared/form-error-feedback/FormErrorFeedback";
7
import FormErrorFeedback from "../../../../../../shared/form-error-feedback/FormErrorFeedback";
8
import Spinner from "../../../../../../shared/loading-spinner/Spinner";
8
import Spinner from "../../../../../../shared/loading-spinner/Spinner";
9
import {CKEditor} from "ckeditor4-react";
9
import {CKEditor} from "ckeditor4-react";
10
import parse from "html-react-parser";
10
import parse from "html-react-parser";
Línea 129... Línea 129...
129
                setValue("description", text);
129
                setValue("description", text);
130
                if (errors.description) {
130
                if (errors.description) {
131
                  clearErrors("description");
131
                  clearErrors("description");
132
                }
132
                }
133
              }}
133
              }}
134
              config={{
134
              config={CKEDITOR_OPTIONS}
135
                startupFocus: "end",
-
 
136
                allowedContent: false,
-
 
137
                image_previewText: ' ',
-
 
138
                toolbarGroups: [
-
 
139
                  // { name: 'document',	   groups: [ 'mode', 'document', 'doctools' ] },
-
 
140
                  // { name: 'clipboard',   groups: [ 'undo' ] },
-
 
141
                  { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
-
 
142
                  { name: 'forms' },
-
 
143
                  { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
-
 
144
                  { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
-
 
145
                  { name: 'links' },
-
 
146
                  { name: 'insert' },
-
 
147
                  { name: 'styles' },
-
 
148
                  { name: 'colors' },
-
 
149
                  { name: 'tools' },
-
 
150
                  { name: 'others' },
-
 
151
                ],
-
 
152
                removeButtons: 'Anchor,Scayt',
-
 
153
                removePlugins: 'elementspath,Anchor,wsc,scayt'
-
 
154
              }}
-
 
155
              name="description"
135
              name="description"
156
            />
136
            />
157
            {errors.description && (
137
            {errors.description && (
158
              <FormErrorFeedback>
138
              <FormErrorFeedback>
159
                {errors.description.message}
139
                {errors.description.message}