From 3c0ed548ca6769f7dc6560fe103bf64a4859f777 Mon Sep 17 00:00:00 2001 From: sibiraj-s Date: Fri, 5 Feb 2021 19:00:10 +0530 Subject: [PATCH] feat: add alignment options to floating menu --- .../modules/menu/floating-menu/floating-menu.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/modules/menu/floating-menu/floating-menu.component.ts b/src/lib/modules/menu/floating-menu/floating-menu.component.ts index 6cee8456..304fe44d 100644 --- a/src/lib/modules/menu/floating-menu/floating-menu.component.ts +++ b/src/lib/modules/menu/floating-menu/floating-menu.component.ts @@ -83,14 +83,16 @@ export class FloatingMenuComponent implements OnInit, OnDestroy { get toolbar(): TBItems[][] { return [ ['bold', 'italic', 'underline', 'strike'], - ['ordered_list', 'bullet_list', 'blockquote', 'code'] + ['ordered_list', 'bullet_list', 'blockquote', 'code'], + ['align_left', 'align_center', 'align_right', 'align_justify'] ]; } get toggleCommands(): TBItems[] { return [ 'bold', 'italic', 'underline', 'strike', - 'ordered_list', 'bullet_list', 'blockquote', 'code' + 'ordered_list', 'bullet_list', 'blockquote', 'code', + 'align_left', 'align_center', 'align_right', 'align_justify' ]; }