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 { HTMLEditor } from '../../app';
import { Plugin } from '../../core/Plugin';
export declare class FormBuilderPlugin implements Plugin {
name: string;
hotkeys: {
keys: string;
description: string;
command: string;
icon: string;
}[];
private editor;
private popup;
private contextMenu;
container: HTMLDivElement | null;
private editFormElement;
private formManager;
private type;
private url;
private formButton;
constructor();
initialize(editor: HTMLEditor): void;
private setupContextMenu;
private addToolbarButton;
private setupPopup;
private createFormBuilderContent;
private addFormField;
private renderFormBuilderContent;
private handleFormInsert;
private editForm;
private deleteForm;
destroy(): void;
}