UNPKG

ngx-tiptap-editor

Version:

[![Build and Publish](https://github.com/HuiiBuh/ngx-tiptap-editor/actions/workflows/publish.yml/badge.svg)](https://github.com/HuiiBuh/ngx-tiptap-editor/actions/workflows/publish.yml) [![Deploy to Github Pages](https://github.com/HuiiBuh/ngx-tiptap-edito

23 lines (22 loc) 1.28 kB
import { EventEmitter, OnDestroy } from '@angular/core'; import { Editor } from '@tiptap/core'; import { MentionData } from '../../extensions/custom/mention/ngx-mention'; import { TiptapEventService } from '../../services/tiptap-event.service'; import { TiptapExtensionService } from '../../services/tiptap-extension.service'; import { ButtonBaseControl } from './base-control'; import * as i0 from "@angular/core"; export declare type MentionCallback = (props: MentionData) => void; export declare class ControlMentionComponent extends ButtonBaseControl implements OnDestroy { protected eventService: TiptapEventService; private extensionService; createMention: EventEmitter<MentionCallback>; mentionClicked: EventEmitter<MentionData>; private mentionExtension; constructor(eventService: TiptapEventService, extensionService: TiptapExtensionService); onEditorReady(editor: Editor): void; updateMention(): void; protected isActive(): boolean; protected can(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<ControlMentionComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ControlMentionComponent, "tip-control-mention", never, {}, { "createMention": "createMention"; "mentionClicked": "mentionClicked"; }, never, ["*"]>; }