mirror of
https://github.com/zadam/trilium.git
synced 2025-10-10 23:54:21 +08:00
fix(popup_editor): ckeditor modals not showing
This commit is contained in:
parent
d91c59b7d0
commit
b595d1fade
1 changed files with 7 additions and 1 deletions
|
@ -114,7 +114,13 @@ export default class PopupEditorDialog extends Container<BasicWidget> {
|
||||||
async openPopupEditorEvent(noteId: string) {
|
async openPopupEditorEvent(noteId: string) {
|
||||||
this.noteId = noteId;
|
this.noteId = noteId;
|
||||||
if (await this.refresh()) {
|
if (await this.refresh()) {
|
||||||
openDialog(this.$widget);
|
const $dialog = await openDialog(this.$widget);
|
||||||
|
$dialog.on("shown.bs.modal", () => {
|
||||||
|
// Reduce the z-index of modals so that ckeditor popups are properly shown on top of it.
|
||||||
|
// The backdrop instance is not shared so it's OK to make a one-off modification.
|
||||||
|
$("body > .modal-backdrop").css("z-index", "998");
|
||||||
|
$dialog.css("z-index", "999");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue