修复字幕对话框的编辑选项在某些电脑下不置顶的BUG
This commit is contained in:
parent
ee0dd21bc1
commit
2d79e558fa
|
@ -202,7 +202,8 @@ export default defineComponent({
|
||||||
branding: false,
|
branding: false,
|
||||||
toolbar_mode: "wrap",
|
toolbar_mode: "wrap",
|
||||||
toolbar:
|
toolbar:
|
||||||
"fullscreen | code undo redo restoredraft | cut copy paste pastetext | fontsize| forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify |subscript superscript removeformat",
|
// "fullscreen | code undo redo restoredraft | cut copy paste pastetext | fontsize| forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify |subscript superscript removeformat",
|
||||||
|
"fullscreen | fontsize| forecolor backcolor bold italic underline strikethrough | subscript superscript removeformat",
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -228,13 +229,30 @@ export default defineComponent({
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.querySelectorAll(".tox ").forEach((item) => {
|
let success = false;
|
||||||
if (item && item.classList.contains("tox-tinymce-aux")) {
|
const checkZIndex = () => {
|
||||||
DomUtil.css(item, {
|
document.querySelectorAll(".tox ").forEach((item) => {
|
||||||
zIndex: "99999",
|
if (item && item.classList.contains("tox-tinymce-aux")) {
|
||||||
});
|
DomUtil.css(item, {
|
||||||
}
|
zIndex: "99999",
|
||||||
});
|
});
|
||||||
|
success = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const checkZIndexAsync = () => {
|
||||||
|
checkZIndex();
|
||||||
|
setTimeout(() => {
|
||||||
|
if (!success) {
|
||||||
|
checkZIndexAsync();
|
||||||
|
} else {
|
||||||
|
console.log("subtitle initialize success");
|
||||||
|
}
|
||||||
|
}, 50);
|
||||||
|
};
|
||||||
|
|
||||||
|
checkZIndexAsync();
|
||||||
},
|
},
|
||||||
resetData() {
|
resetData() {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
|
Loading…
Reference in New Issue