ngx-editor
Version:
The Rich Text Editor for Angular, Built on ProseMirror
30 lines (29 loc) • 1.25 kB
TypeScript
import { OnDestroy, OnInit } from '@angular/core';
import { EditorView } from 'prosemirror-view';
import { Observable } from 'rxjs';
import { NgxEditorService } from '../../../editor.service';
import { HTML } from '../../../trustedTypesUtil';
import { TBItems, ToolbarItem } from '../../../types';
import { MenuService } from '../menu.service';
import * as i0 from "@angular/core";
export declare class ToggleCommandComponent implements OnInit, OnDestroy {
private ngxeService;
private menuService;
toolbarItem: ToolbarItem;
get name(): TBItems;
html: HTML;
editorView: EditorView;
isActive: boolean;
disabled: boolean;
private updateSubscription;
constructor(ngxeService: NgxEditorService, menuService: MenuService);
toggle(): void;
onMouseClick(e: MouseEvent): void;
onKeydown(): void;
update: (view: EditorView) => void;
getTitle(name: string): Observable<string>;
ngOnInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleCommandComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleCommandComponent, "ngx-toggle-command", never, { "toolbarItem": { "alias": "toolbarItem"; "required": false; }; }, {}, never, never, true, never>;
}