✍️ new fonts: EucrosiaUPC

This commit is contained in:
Sahatsawat Kanpai 2025-01-08 13:16:10 +07:00
parent f7b8ba4adf
commit 6b3523649c
2 changed files with 19 additions and 19 deletions

View File

@ -134,8 +134,8 @@ ClassicEditor
generatePtSetting( 14 ), generatePtSetting( 14 ),
generatePtSetting( 16 ), generatePtSetting( 16 ),
generatePtSetting( 18 ), generatePtSetting( 18 ),
generatePtSetting( 20 ), generatePtSetting( 20 )
], ]
}, },
fontFamily: { fontFamily: {
options: [ options: [
@ -151,7 +151,8 @@ ClassicEditor
'Verdana, Geneva, sans-serif', 'Verdana, Geneva, sans-serif',
'TH Sarabun New, sans-serif', 'TH Sarabun New, sans-serif',
'Angsana New, serif', 'Angsana New, serif',
'Noto Sans Thai, sans-serif', 'EucrosiaUPC, serif',
'Noto Sans Thai, sans-serif'
] ]
}, },
mathlive: { mathlive: {
@ -165,21 +166,21 @@ ClassicEditor
return () => { return () => {
panelView?.destroy(); panelView?.destroy();
panelView = null; panelView = null;
} };
}, },
mathPanelDestroyOnClose: true, mathPanelDestroyOnClose: true,
openPanelWhenEquationSelected: false, openPanelWhenEquationSelected: false
}, },
fontColor: { fontColor: {
colorPicker: { colorPicker: {
format: 'hex', format: 'hex'
} }
}, },
fontBackgroundColor: { fontBackgroundColor: {
colorPicker: { colorPicker: {
format: 'hex', format: 'hex'
}
} }
},
} ) } )
.then( editor => { .then( editor => {
window.editor = editor; window.editor = editor;

View File

@ -19,17 +19,16 @@
<h1>CKEditor 5 Development Sample</h1> <h1>CKEditor 5 Development Sample</h1>
<div id="editor"> <div id="editor">
<p><span style="font-size:16pt;">คําภาษาอังกฤษในข้อใด<strong>ไม่สามารถ</strong>ใช้คําไทยแทนได้&nbsp;</span></p> <p><span style="font-size:16pt;">คำภาษาอังกฤษในข้อใด<strong>ไม่สามารถ</strong>ใช้คำไทยแทนได้</span></p>
<p><span style="font-size:16pt;">ก. ร่างกายที่</span><span <p><span style="font-size:16pt;">ก. ร่างกายที่</span><span style="color:#0070c0;font-size:16pt;"><u>ฟิต</u></span><span
style="color:rgb(0,112,192);font-size:16pt;"><u>ฟิต</u></span><span style="font-size:16pt;">จะช่วยป้องกันการบาดเจ็บที่เกิดจากความเหนื่อยล้า</span></p>
style="font-size:16pt;">จะช่วยป้องกันการบาดเจ็บที่เกิดจากความเหนื่อยล้า&nbsp;</span><br><span <p><span style="font-size:16pt;">ข. การบริหารข้อมืออาจใช้วิธีบีบลูก</span><span
style="font-size:16pt;">ข. การบริหารข้อมืออาจใช้วิธีบีบลูก</span><span style="color:#e97132;font-size:16pt;"><u>เทนนิส</u></span><span
style="color:rgb(233,113,50);font-size:16pt;"><u>เทนนิส</u></span><span style="font-size:16pt;">ในท่ากระดกข้อมือขึ้นลง</span></p>
style="font-size:16pt;">ในท่ากระดกข้อมือขึ้นลง&nbsp;</span><br><span style="font-size:16pt;">ค. นัก</span><span <p><span style="font-size:16pt;">ค. นัก</span><span style="color:#4ea72e;font-size:16pt;"><u>กอล์ฟ</u></span><span
style="color:rgb(78,167,46);font-size:16pt;"><u>กอล์ฟ</u></span><span style="font-size:16pt;">ควรออกกําลังและบริหารร่างกายให้มีกล้ามเนื้อที่แข็งแรง</span></p>
style="font-size:16pt;">ควรออกกําลังและบริหารร่างกายให้มีกล้ามเนื้อที่แข็งแรง&nbsp;</span><br><span <p><span style="font-size:16pt;">ง. กล้ามเนื้อที่มีความยืดหยุ่นดีจะทนทานพอที่จะเล่นให้จบ</span><span
style="font-size:16pt;">ง. กล้ามเนื้อที่มีความยืดหยุ่นดีจะทนทานพอที่จะเล่นให้จบ</span><span style="color:#7030a0;font-size:16pt;"><u>เกม</u></span></p>
style="color:rgb(112,48,160);font-size:16pt;"><u>เกม</u></span></p>
</div> </div>
<script src="./ckeditor.dist.js"></script> <script src="./ckeditor.dist.js"></script>