UNPKG

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

37 lines (36 loc) 1.04 kB
import { HTMLEditor } from '../../core/HTMLEditor'; import { Plugin } from '../../core/Plugin'; export declare class SpellCheckerPlugin implements Plugin { name: string; hotkeys: { keys: string; description: string; command: string; icon: string; }[]; private editor; private toolbarButton; private isSpellCheckEnabled; private spellChecker; private misspelledWords; private lastResults; constructor(); initialize(editor: HTMLEditor): Promise<void>; private loadDictionary; private addToolbarButton; private enableSpellCheck; private addSpellCheckListeners; private removeSpellCheckListeners; private handleInput; private handleMouseUp; private handleContextMenu; private checkAllText; private checkSpelling; private isMisspelled; private getSpellingSuggestions; private highlightMisspelledWord; private clearHighlights; private showContextMenu; private replaceMisspelledWord; destroy(): void; }