diff --git a/projects/editor/src/app/text-editor/rich-text-editor.component.html b/projects/editor/src/app/text-editor/rich-text-editor.component.html index 17b67e6ad75d6c70fd37a228ffef722f0b6a520e..48570e4d2ed2c70d74d85fbaff683da8722b0c33 100644 --- a/projects/editor/src/app/text-editor/rich-text-editor.component.html +++ b/projects/editor/src/app/text-editor/rich-text-editor.component.html @@ -249,7 +249,7 @@ (click)="insertTextField()"> <mat-icon>text_fields</mat-icon> </button> - <button mat-icon-button matTooltip="Ablegefeld" [matTooltipShowDelay]="300" + <button mat-icon-button matTooltip="Ablegeliste" [matTooltipShowDelay]="300" (click)="insertDropList()"> <mat-icon>drag_indicator</mat-icon> </button> diff --git a/projects/editor/src/app/text-editor/rich-text-editor.component.ts b/projects/editor/src/app/text-editor/rich-text-editor.component.ts index 63544c66eb5d09f2f529d318a0e9175c79d7a65f..29dca96a34053d27cb01cecd6f4c1a0c4d8b2787 100644 --- a/projects/editor/src/app/text-editor/rich-text-editor.component.ts +++ b/projects/editor/src/app/text-editor/rich-text-editor.component.ts @@ -64,7 +64,7 @@ export class RichTextEditorComponent implements AfterViewInit { Heading.configure({ levels: [1, 2, 3, 4] }), - paragraphExtension, + ParagraphExtension, FontSizeExtension, BulletListExtension, OrderedListExtension, @@ -200,13 +200,16 @@ export class RichTextEditorComponent implements AfterViewInit { insertToggleButton(): void { this.editor.commands.insertContent('<app-nodeview-toggle-button></app-nodeview-toggle-button>'); + this.editor.commands.focus(); } insertDropList(): void { this.editor.commands.insertContent('<app-nodeview-drop-list></app-nodeview-drop-list>'); + this.editor.commands.focus(); } insertTextField(): void { this.editor.commands.insertContent('<app-nodeview-text-field></app-nodeview-text-field>'); + this.editor.commands.focus(); } }