fontColor and fontBackgroundColor to hex, to be able to utilized with html-to-docx correctly

This commit is contained in:
Sahatsawat Kanpai 2025-01-07 13:08:12 +07:00
parent a402a54ebe
commit 6cb026aff4

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: [
@ -170,6 +170,16 @@ ClassicEditor
mathPanelDestroyOnClose: true, mathPanelDestroyOnClose: true,
openPanelWhenEquationSelected: false, openPanelWhenEquationSelected: false,
}, },
fontColor: {
colorPicker: {
format: 'hex',
}
},
fontBackgroundColor: {
colorPicker: {
format: 'hex',
}
},
} ) } )
.then( editor => { .then( editor => {
window.editor = editor; window.editor = editor;