From 35c3a3378d2280a53b4dd926d5a54b63d7a2eda5 Mon Sep 17 00:00:00 2001 From: Jiuqing Song Date: Thu, 4 Apr 2024 13:52:51 -0700 Subject: [PATCH] Set default format in demo site (#2559) --- .../controlsV2/sidePane/editorOptions/DefaultFormatPane.tsx | 1 + .../sidePane/editorOptions/EditorOptionsPlugin.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/demo/scripts/controlsV2/sidePane/editorOptions/DefaultFormatPane.tsx b/demo/scripts/controlsV2/sidePane/editorOptions/DefaultFormatPane.tsx index 4756df115f0..302d4480cb5 100644 --- a/demo/scripts/controlsV2/sidePane/editorOptions/DefaultFormatPane.tsx +++ b/demo/scripts/controlsV2/sidePane/editorOptions/DefaultFormatPane.tsx @@ -39,6 +39,7 @@ export class DefaultFormatPane extends React.Component { [NOT_SET]: 'Not Set', '8pt': '8', '10pt': '10', + '11pt': '11', '12pt': '12', '16pt': '16', '20pt': '20', diff --git a/demo/scripts/controlsV2/sidePane/editorOptions/EditorOptionsPlugin.ts b/demo/scripts/controlsV2/sidePane/editorOptions/EditorOptionsPlugin.ts index 45d5348c455..7439f8691e2 100644 --- a/demo/scripts/controlsV2/sidePane/editorOptions/EditorOptionsPlugin.ts +++ b/demo/scripts/controlsV2/sidePane/editorOptions/EditorOptionsPlugin.ts @@ -26,7 +26,11 @@ const initialState: OptionState = { announce: false, }, contentEditFeatures: getDefaultContentEditFeatureSettings(), - defaultFormat: {}, + defaultFormat: { + fontFamily: 'Calibri', + fontSize: '11pt', + textColor: '#000000', + }, linkTitle: 'Ctrl+Click to follow the link:' + UrlPlaceholder, watermarkText: 'Type content here ...', forcePreserveRatio: false,