Changelog
4.4.8
Changelog
4.3.1
popupRoot
option for all IViewBased
classes (Dialog
, Jodit
, FileBrowser
). Allows you to specify the parental element of dialogs and popup windows.dialog
or eny element with position: fixed
or position: absolute
, then it is used as a parent.shadowRoot
can be used as a popupRoot
Those. Parent search priorities:
popupRoot
optionshadowRoot
optiondialog
or with style position: fixed
or position: absolute
This is necessary in cases where Jodit is displayed inside the dialog windows with a focus interception. For example, when inserting in [mui dialog] (https://mui.com/material-ui/react-dialog/)
If this is your situation, then in most cases you won't need to do anything, as Jodit will find the correct parent element on its own.
But if your code logic was configured specifically to insert into document.body
, then you will need to explicitly specify popupRoot: document.body
const editor = Jodit.make('#editor', {
popupRoot: document.body
});