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) • 563 B
TypeScript
import { HTMLEditor } from '../../../core/HTMLEditor.ts';
export declare class BlockContextMenu {
private editor;
private contextMenu;
private activeBlock;
constructor(editor: HTMLEditor);
private handleAction;
private insertBlock;
private splitBlock;
private mergeBlocks;
private moveBlock;
private duplicateBlock;
private setBlockEditable;
private removeBlock;
private canSplit;
private getAdjacentBlocks;
show(block: HTMLElement, x: number, y: number): void;
hide(): void;
destroy(): void;
}