Skip to content

Commit

Permalink
fix: remove unusual functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ItalloDornelas committed Nov 14, 2023
1 parent d4a3629 commit f219ad4
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/syncfusion/toolbarConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,42 +212,6 @@ export const toolBarSettings = (editor: DocumentEditorContainer) => {
"96",
];

function lineSpacingAction(args: { item: { text: any } }) {
var text = args.item.text;
switch (text) {
case "Single":
editor.documentEditor.selection.paragraphFormat.lineSpacing = 1;
break;
case "1.15":
editor.documentEditor.selection.paragraphFormat.lineSpacing = 1.15;
break;
case "1.5":
editor.documentEditor.selection.paragraphFormat.lineSpacing = 1.5;
break;
case "Double":
editor.documentEditor.selection.paragraphFormat.lineSpacing = 2;
break;
}
setTimeout(function () {
editor.documentEditor.focusIn();
}, 30);
}

const items: ItemModel[] = [
{
text: "Single",
},
{
text: "1.15",
},
{
text: "1.5",
},
{
text: "Double",
},
];

const addItemsToolbar = [
{ type: "Separator" },
{
Expand Down

0 comments on commit f219ad4

Please sign in to comment.