Fix file editor & preview (#32706)

Fix a regression caused by jQuery removal (`renderPreviewPanelContent`)

And simplify the file editor, it doesn't need to be that complex. And
remove jQuery code.
This commit is contained in:
wxiaoguang 2024-12-04 17:26:54 +08:00 committed by GitHub
parent e45ffc530f
commit 838653d1df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 52 additions and 94 deletions

View file

@ -196,6 +196,6 @@ export function initAreYouSure($) {
};
}
export function applyAreYouSure(selector: string) {
$(selector).areYouSure();
export function applyAreYouSure(selectorOrEl: string|Element|$, opts = {}) {
$(selectorOrEl).areYouSure(opts);
}