Skip to content

Commit

Permalink
mudanças para lançar configs de fonte e tamanho do portal para o editor
Browse files Browse the repository at this point in the history
  • Loading branch information
BraunAugusto committed Dec 21, 2023
1 parent f746a8d commit 6fb4ef2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/syncfusion/toolbar/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const toolBarSettings = (
editor.documentEditor.selection.characterFormat.fontFamily = args.value;
editor.documentEditor.focusIn();
};

//To Change the font Size of selected content
const changeFontSize = (args: { value: number }) => {
editor.documentEditor.selection.characterFormat.fontSize = args.value;
Expand Down Expand Up @@ -215,7 +216,8 @@ export const toolBarSettings = (
template: new ComboBox({
dataSource: fontStyle,
width: 120,
index: 2,
index: 1,
value: editor.documentEditor.selection.characterFormat.fontFamily,
allowCustom: true,
change: changeFontFamily,
autofill: true,
Expand All @@ -230,6 +232,7 @@ export const toolBarSettings = (
width: 80,
allowCustom: true,
index: 2,
value: editor.documentEditor.selection.characterFormat.fontSize,
change: changeFontSize,
showClearButton: false,
}),
Expand Down

0 comments on commit 6fb4ef2

Please sign in to comment.