Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

455
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!