Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

466
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda