UNPKG

@iizotikov/editor-js-tg-spoiler

Version:

Inline tool for adding spoilers to text fragments, supporting export to telegram

15 lines (14 loc) 437 B
import { InlineTool, SanitizerConfig } from '@editorjs/editorjs'; export default class Spoiler implements InlineTool { static isInline: boolean; static title: string; static get sanitize(): SanitizerConfig; private readonly commandName; private readonly CSS; private nodes; render(): HTMLElement; surround(): void; private addSpoilerClass; private findAllSpoilerTags; checkState(): boolean; }