Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

270
Vistas
Unable to access inputfield in modal generated by TinyMCE react in Next.JS

I am using Next.JS in my project. I want to add the TinyMCE editor to my page. I have used the below code.

<TinyMceEditor
    selector='textarea'
    initialValue={ props.value }
    apiKey=<API_KEY>
    init={{
        height: 500,
        menubar: false,
        plugins: [
            'advlist autolink lists link image', 
            'charmap print preview anchor help',
            'searchreplace visualblocks code',
            'insertdatetime media table paste wordcount'
        ],
        toolbar:
            'undo redo | formatselect | bold italic underline | \
            alignleft aligncenter alignright | \
            bullist numlist outdent indent | \
            anchor link table image media video | \
            searchreplace visualblocks code'
    }}
    onChange={(...args) => console.log(args)}
/>

I am getting two different behavior of this code for the two different pages.

On the homepage, i.e. localhost:3000/, the editor is working correctly. I can add Images through a popup modal, attach a link, etc.

enter image description here

But when I go localhost:3000/admin/teams the input fields of the popup modal are not focusable. It does not gain focus when I click on it. But at the same time, I can interact with the buttons/checkboxes. It is just not focusing on the input field.

enter image description here

I am not getting what is causing this problem. The same problem is also happening in Jodit editor also. I am not getting whether it is related to the Next.JS environment issue or path-related issue. From the last few days after experimenting with these two editors, I am thinking the issue is related to the modal elements used in them (maybe).

Any advice or help would be appreciated. Thank you.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

It was an issue with the dialog box of Material UI. After passing disableEnforceFocus={true} to <Dialog /> component, it got resolved.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda