字幕默认字体强制设置为60pt

This commit is contained in:
fangxiang 2023-01-07 16:52:03 +08:00
parent 273a141823
commit c44a2076f3
1 changed files with 2 additions and 1 deletions

View File

@ -226,6 +226,7 @@ export default defineComponent({
skin: "tinymce-5", skin: "tinymce-5",
language: i18n.locale.value == "zh-CN" ? "zh-Hans" : "en_US", language: i18n.locale.value == "zh-CN" ? "zh-Hans" : "en_US",
menubar: false, menubar: false,
content_style: "p {font-size:60pt;margin:0px;}", // (12px, editor.execCommand)
branding: false, branding: false,
toolbar_mode: "wrap", toolbar_mode: "wrap",
toolbar: toolbar:
@ -290,7 +291,7 @@ export default defineComponent({
} catch (e) { } catch (e) {
console.log(e); console.log(e);
} }
// // // ( content_style)
editor.execCommand("FontSize", false, "60pt"); editor.execCommand("FontSize", false, "60pt");
}, },
onShow() { onShow() {