ngx-editor
Version:
Rich Text Editor for angular using ProseMirror
35 lines (34 loc) • 1.31 kB
TypeScript
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
import Editor from '../../../Editor';
import { TBItems } from '../../../types';
import { SanitizeHtmlPipe } from '../../../pipes/sanitize/sanitize-html.pipe';
import * as i0 from "@angular/core";
export declare class FloatingMenuComponent implements OnInit, OnDestroy {
el: ElementRef<HTMLElement>;
private sanitizeHTML;
constructor(el: ElementRef<HTMLElement>, sanitizeHTML: SanitizeHtmlPipe);
get display(): Partial<CSSStyleDeclaration>;
private get view();
editor: Editor;
private posLeft;
private posTop;
private showMenu;
private updateSubscription;
private dragging;
private resizeSubscription;
execulableItems: TBItems[];
activeItems: TBItems[];
onMouseDown(e: MouseEvent): void;
onKeyDown(e: KeyboardEvent): void;
onMouseUp(e: MouseEvent): void;
onKeyUp(e: KeyboardEvent): void;
private useUpdate;
private hide;
private show;
private calculateBubblePosition;
private update;
ngOnInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FloatingMenuComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<FloatingMenuComponent, "ngx-editor-floating-menu", never, { "editor": "editor"; }, {}, never, ["*"]>;
}