Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2042 Rev 2043
Línea 14... Línea 14...
14
import { addFeed, fetchFeeds } from "../../../redux/feed/feed.actions";
14
import { addFeed, fetchFeeds } from "../../../redux/feed/feed.actions";
15
import DropzoneComponent from "../../../shared/dropzone/DropzoneComponent";
15
import DropzoneComponent from "../../../shared/dropzone/DropzoneComponent";
16
import { shareModalTypes } from "../../../redux/share-modal/shareModal.types";
16
import { shareModalTypes } from "../../../redux/share-modal/shareModal.types";
17
import { feedTypes } from "../../../redux/feed/feed.types";
17
import { feedTypes } from "../../../redux/feed/feed.types";
18
import { CKEditor } from "ckeditor4-react";
18
import { CKEditor } from "ckeditor4-react";
19
import { axios } from "../../../utils";
19
import { axios, CKEDITOR_OPTIONS } from "../../../utils";
20
import ConfirmModal from "../../../shared/confirm-modal/ConfirmModal";
20
import ConfirmModal from "../../../shared/confirm-modal/ConfirmModal";
Línea 21... Línea 21...
21
 
21
 
22
const StyledSpinnerContainer = styled.div`
22
const StyledSpinnerContainer = styled.div`
23
  position: absolute;
23
  position: absolute;
Línea 266... Línea 266...
266
                setValue("description", text);
266
                setValue("description", text);
267
                if (errors.description && getValues(description)) {
267
                if (errors.description && getValues(description)) {
268
                  clearErrors("description");
268
                  clearErrors("description");
269
                }
269
                }
270
              }}
270
              }}
271
              config={{
271
              config={CKEDITOR_OPTIONS}
272
                startupFocus: "end",
-
 
273
                allowedContent: false,
-
 
274
                image_previewText: ' ',
-
 
275
                toolbarGroups: [
-
 
276
                  // { name: 'document',	   groups: [ 'mode', 'document', 'doctools' ] },
-
 
277
                  // { name: 'clipboard',   groups: [ 'undo' ] },
-
 
278
                  { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
-
 
279
                  { name: 'forms' },
-
 
280
                  { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
-
 
281
                  { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
-
 
282
                  { name: 'links' },
-
 
283
                  { name: 'insert' },
-
 
284
                  { name: 'styles' },
-
 
285
                  { name: 'colors' },
-
 
286
                  { name: 'tools' },
-
 
287
                  { name: 'others' },
-
 
288
                ],
-
 
289
                removeButtons: 'Anchor,Scayt',
-
 
290
                removePlugins: 'elementspath,Anchor,wsc,scayt'
-
 
291
              }}
-
 
292
              name="description"
272
              name="description"
293
              onBeforeLoad={() => {
273
              onBeforeLoad={() => {
294
                setIsCKEditorLoading(false);
274
                setIsCKEditorLoading(false);
295
                ("Ready");
-
 
296
                ("Ready");
-
 
297
              }}
275
              }}
298
            />
276
            />
299
            {isCKEditorLoading && (
277
            {isCKEditorLoading && (
300
              <StyledSpinnerContainer>
278
              <StyledSpinnerContainer>
301
                <Spinner />
279
                <Spinner />