Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4996 Rev 4997
Línea 256... Línea 256...
256
                setValue("description", text)
256
                setValue("description", text)
257
                if (errors.description && getValues('description')) clearErrors("description")
257
                if (errors.description && getValues('description')) clearErrors("description")
258
              }}
258
              }}
259
              config={CKEDITOR_OPTIONS}
259
              config={CKEDITOR_OPTIONS}
260
              name="description"
260
              name="description"
-
 
261
              onDialogShow={() => {
-
 
262
                const modal = document.querySelector('.fade.modal.show')
-
 
263
                modal.removeAttribute('tabindex')
-
 
264
              }}
261
              onBeforeLoad={(CKEDITOR) => {
265
              onBeforeLoad={(CKEDITOR) => {
262
                setIsCKEditorLoading(false)
266
                setIsCKEditorLoading(false)
263
                CKEDITOR.on('dialogDefinition', function (ev) {
-
 
264
                  const onMount = ev.data.definition.onShow()
-
 
265
                  ev.data.definition.onShow = function () {
-
 
266
                    const modal = document.querySelector('.fade.modal.show')
-
 
267
                    onMount()
-
 
268
                    modal.removeAttribute('tabindex')
-
 
269
                  }
-
 
270
                })
-
 
271
              }}
267
              }}
272
            />
268
            />
273
            {isCKEditorLoading &&
269
            {isCKEditorLoading &&
274
              <StyledSpinnerContainer>
270
              <StyledSpinnerContainer>
275
                <Spinner />
271
                <Spinner />