diff --git a/projects/editor/src/components/toolbar/toolbar.component.ts b/projects/editor/src/components/toolbar/toolbar.component.ts index 623f9e994..88da52c16 100644 --- a/projects/editor/src/components/toolbar/toolbar.component.ts +++ b/projects/editor/src/components/toolbar/toolbar.component.ts @@ -123,14 +123,14 @@ export class TuiToolbar { @Output() public readonly fileAttached = new EventEmitter(); + public readonly el: HTMLElement | null = + inject(ElementRef, {optional: true})?.nativeElement ?? null; + @Input() public set tools(value: Set | readonly TuiEditorToolType[]) { this.toolsSet = new Set(value); } - public readonly el: HTMLElement | null = - inject(ElementRef, {optional: true})?.nativeElement ?? null; - protected get editor(): AbstractTuiEditor | null { return this.injectionEditor ?? this.inputEditor; }