From 6cb026aff4fa6953d665aa5a872b99bb3528e80c Mon Sep 17 00:00:00 2001 From: Sahatsawat Kanpai Date: Tue, 7 Jan 2025 13:08:12 +0700 Subject: [PATCH] fontColor and fontBackgroundColor to hex, to be able to utilized with html-to-docx correctly --- sample/ckeditor.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sample/ckeditor.ts b/sample/ckeditor.ts index aeb34cc..9363bb6 100644 --- a/sample/ckeditor.ts +++ b/sample/ckeditor.ts @@ -134,8 +134,8 @@ ClassicEditor generatePtSetting( 14 ), generatePtSetting( 16 ), generatePtSetting( 18 ), - generatePtSetting( 20 ) - ] + generatePtSetting( 20 ), + ], }, fontFamily: { options: [ @@ -170,6 +170,16 @@ ClassicEditor mathPanelDestroyOnClose: true, openPanelWhenEquationSelected: false, }, + fontColor: { + colorPicker: { + format: 'hex', + } + }, + fontBackgroundColor: { + colorPicker: { + format: 'hex', + } + }, } ) .then( editor => { window.editor = editor;