ngx-editor
Version:
Rich Text Editor for angular using ProseMirror
33 lines (32 loc) • 1.19 kB
TypeScript
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
import { AbstractControl, FormGroup } from '@angular/forms';
import { NgxEditorService } from '../../../editor.service';
import { MenuService } from '../menu.service';
import * as i0 from "@angular/core";
export declare class LinkComponent implements OnInit, OnDestroy {
private el;
private ngxeService;
private menuService;
showPopup: boolean;
isActive: boolean;
canExecute: boolean;
private editorView;
private updateSubscription;
form: FormGroup;
constructor(el: ElementRef, ngxeService: NgxEditorService, menuService: MenuService);
get icon(): string;
get title(): string;
get href(): AbstractControl;
get text(): AbstractControl;
onDocumentClick(e: MouseEvent): void;
getLabel(key: string): string;
private hideForm;
onMouseDown(e: MouseEvent): void;
private setText;
private update;
insertLink(e: MouseEvent): void;
ngOnInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "ngx-link", never, {}, {}, never, never>;
}