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
29 lines (28 loc) • 741 B
TypeScript
import { HTMLEditor } from '../../core/HTMLEditor';
import { Plugin } from '../../core/Plugin';
export declare class FontPlugin implements Plugin {
name: string;
hotkeys: {
keys: string;
description: string;
command: string;
icon: string;
}[];
private editor;
private toolbarButtons;
private fontButtons;
private fontPopup;
private fontFamilies;
private font;
private size;
private lineHeight;
constructor();
initialize(editor: HTMLEditor): void;
private addToolbarButtons;
private handleSelectionChange;
private getAvailableFonts;
private getLoadedFonts;
private applyFontSettings;
private clearFontSettings;
destroy(): void;
}