Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @schlechtenburg/standalone

Index

Functions

  • startSchlechtenburg(el: string | HTMLElement, props: ISbMainProps): Promise<{ getBlock: () => null | IBlockData<any>; getMode: () => SbMode; setBlock: (block: IBlockData<any>) => void; setMode: (mode: SbMode) => void }>
  • Initializes the Schlechtenburg editor

    see

    ISbMainProps

    see

    SbMain

    Parameters

    • el: string | HTMLElement

      The element on which the editor schould be mounted

    • props: ISbMainProps

      The Schlechtenburg props

    Returns Promise<{ getBlock: () => null | IBlockData<any>; getMode: () => SbMode; setBlock: (block: IBlockData<any>) => void; setMode: (mode: SbMode) => void }>

    A set of functions to interact with the live Schlechtenburg instance

Generated using TypeDoc