From d6ff604f585053afc6318108c282ec2623154ac7 Mon Sep 17 00:00:00 2001 From: wfpena Date: Thu, 7 Nov 2024 09:15:42 -0300 Subject: [PATCH] fix: color picker positioning --- package.json | 2 +- projects/angular-editor/package.json | 2 +- .../lib/angular-editor-toolbar.component.html | 27 ++++++++++++------- .../lib/angular-editor-toolbar.component.ts | 2 ++ .../src/lib/angular-editor.component.html | 1 + 5 files changed, 22 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 596c3b4..d001ba7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wfpena/angular-wysiwyg", - "version": "2.0.0", + "version": "2.0.1", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/projects/angular-editor/package.json b/projects/angular-editor/package.json index f7ffc4b..692c23d 100644 --- a/projects/angular-editor/package.json +++ b/projects/angular-editor/package.json @@ -1,6 +1,6 @@ { "name": "@wfpena/angular-wysiwyg", - "version": "2.0.0", + "version": "2.0.1", "description": "A rich WYSIWYG text editor for Angular 13+. Rich Text editor component for Angular built using Angular 17.", "author": "Wilson Pena ", "repository": "https://github.com/wfpena/angular-wysiwyg", diff --git a/projects/angular-editor/src/lib/angular-editor-toolbar.component.html b/projects/angular-editor/src/lib/angular-editor-toolbar.component.html index b317065..a6e9dbc 100644 --- a/projects/angular-editor/src/lib/angular-editor-toolbar.component.html +++ b/projects/angular-editor/src/lib/angular-editor-toolbar.component.html @@ -95,24 +95,31 @@ title="Font Size"> -
+
- +
+
-
diff --git a/projects/angular-editor/src/lib/angular-editor-toolbar.component.ts b/projects/angular-editor/src/lib/angular-editor-toolbar.component.ts index d05394d..c64555a 100644 --- a/projects/angular-editor/src/lib/angular-editor-toolbar.component.ts +++ b/projects/angular-editor/src/lib/angular-editor-toolbar.component.ts @@ -166,6 +166,8 @@ export class AngularEditorToolbarComponent { } } + @Input() toolbarPosition: string; + @Input() hiddenButtons: string[][]; @Output() execute: EventEmitter = new EventEmitter(); diff --git a/projects/angular-editor/src/lib/angular-editor.component.html b/projects/angular-editor/src/lib/angular-editor.component.html index 321bed9..4ab63c0 100644 --- a/projects/angular-editor/src/lib/angular-editor.component.html +++ b/projects/angular-editor/src/lib/angular-editor.component.html @@ -68,6 +68,7 @@ [defaultFontName]="config.defaultFontName" [defaultFontSize]="config.defaultFontSize" [hiddenButtons]="config.toolbarHiddenButtons" + [toolbarPosition]="config.toolbarPosition" (execute)="executeCommand($event)" >