字幕默认字体强制设置为60pt
This commit is contained in:
parent
273a141823
commit
c44a2076f3
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue