UNPKG

on-codemerge

Version:

A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product

21 lines (20 loc) 545 B
import { HTMLEditor } from '../../../core/HTMLEditor'; export type Mention = { id: string; label: string; }; export declare class MentionsMenu { private popup; private editor; private allMentions; private onPick; private currentQuery; constructor(editor: HTMLEditor, mentions: Mention[]); private createPopup; private buildItems; private update; private pick; show(onPick: (m: Mention) => void, x?: number, y?: number): void; setMentions(mentions: Mention[]): void; destroy(): void; }