Options
All
  • Public
  • Public/Protected
  • All
Menu

An event fired when pending format state (bold, italic, underline, ... with collapsed selection) is changed

Hierarchy

Index

Properties

Optional eventDataCache

eventDataCache: {}

An optional event cache. This will be consumed by event cache API to store some expensive calculation result. So that for the same event across plugins, the result doesn't need to be calculated again

Type declaration

  • [key: string]: any

eventType

Type of this event

Optional formatCallback

formatCallback: (element: HTMLElement, isInnerNode?: boolean) => any

Type declaration

    • (element: HTMLElement, isInnerNode?: boolean): any
    • A callback to do format change to a temp element. This is used for style-based format such as font and color

      Parameters

      • element: HTMLElement
      • Optional isInnerNode: boolean

      Returns any

formatState

formatState: PendableFormatState

The new format state to apply. If null is passed, clear existing pending format state if any

Generated using TypeDoc