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

457
Vistas
Jodit-React, popups (inserting table or an image) are not focusable if the editor is inside an html dialog

as the title says, Jodit Component in react works fine if it is not inside a dialog, but if it is inside a dialog, popups are being non focusable, and are being behind the dialog itself, which make them unreachable.

const Example = ({}) => {
  const editor = useRef(null);
  const [content, setContent] = useState("");

  const config = {
    readonly: false // all options from https://xdsoft.net/jodit/doc/
  };

  function mod(){
    document.getElementById('modal').showModal()
  }
  return (
    <div>
        <button  onClick={(e)=>mod()}>open dialog</button>
      <dialog id='modal' >
      <form method='dialog'>
    <JoditEditor
      ref={editor}
      value={content}
      config={config}
      tabIndex={1} // tabIndex of textarea
      onBlur={(newContent) => setContent(newContent)} // preferred to use only this option to update the content for performance reasons
      onChange={(newContent) => {}}
    />
     </form>
    </dialog>
    </div>
  );
}
export default Example;

a screenshot of when i try to insert a table

enter image description here

as you see, the table popup is showing behind the dialog, i am not sure how to fix this.

about 4 years ago · Juan Pablo Isaza
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