UNPKG

editorjs-inline-formatter

Version:

Inline formatter tool for editorjs

36 lines (29 loc) 1.07 kB
import { InlineToolConstructable } from '@editorjs/editorjs'; declare const createGenericInlineTool: ({ shortcut, formatStyle, toolboxIcon, }: Props) => InlineToolConstructable; export default createGenericInlineTool; export declare const ItalicInlineTool: InlineToolConstructable; export declare interface Props { /** * [Shortcut](https://github.com/codex-team/codex.shortcuts) to apply * [Tool's render and inserting behaviour](https://editorjs.io/tools-api#shortcut) * * @default undefined */ shortcut?: string; /** * text [formatting tag](https://www.w3schools.com/html/html_formatting.asp) * (eg. `bold`) * * @default undefined */ formatStyle: string; /** * Icon for the tools [inline toolbar](https://editorjs.io/inline-tools-api-1#render) * * @default undefined */ toolboxIcon: string; } export declare const StrongInlineTool: InlineToolConstructable; export declare const UnderlineInlineTool: InlineToolConstructable; export { }