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
27 lines (26 loc) • 681 B
TypeScript
import { Plugin } from '../../core/Plugin';
import { HTMLEditor } from '../../core/HTMLEditor';
export declare class LinkPlugin implements Plugin {
name: string;
hotkeys: {
keys: string;
description: string;
command: string;
icon: string;
}[];
private editor;
private menu;
private contextMenu;
private currentRange;
private toolbarButton;
constructor();
initialize(editor: HTMLEditor): void;
private addToolbarButton;
private setupContextMenu;
private handleContextMenu;
private openModal;
private handleLinkInsertion;
private editLink;
private removeLink;
destroy(): void;
}