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
33 lines (32 loc) • 844 B
TypeScript
import { Plugin } from '../../core/Plugin';
import { HTMLEditor } from '../../core/HTMLEditor';
export declare class CommentsPlugin implements Plugin {
name: string;
hotkeys: {
keys: string;
description: string;
command: string;
icon: string;
}[];
private editor;
private manager;
private menu;
private errorModal;
private tooltip;
private toolbarButton;
constructor();
initialize(editor: HTMLEditor): void;
private createTooltip;
private addToolbarButton;
private setupEventListeners;
private handleMouseOver;
private handleMouseOut;
private handleClick;
private showTooltip;
private hideTooltip;
private addComment;
private isRangeInsideEditor;
private editComment;
private insertCommentMarker;
destroy(): void;
}