• Messier61OnChangePlugin implements the real-time capturing of editor content.

    When user enters arbitrary text into the Editor, the side effect of this component gets immediately triggered.

    The side effects performs the following two operations:

    1. Extracts each line of text and put them into a list
    2. Apply the transformer logic (@see Editor) to the list and turn it into a custome format
    3. "Export" the transformed result using some follow-up logic (@see Editor), such as performing some side effect in another module

    Returns

    a standar lexical plugin

    See

    Lexical Plugin

    Parameters

    • __namedParameters: {
          exporter: ((exportLocation: any) => void);
          transformer: ((editorContentLines: string[]) => any);
      }
      • exporter: ((exportLocation: any) => void)
          • (exportLocation: any): void
          • Parameters

            • exportLocation: any

            Returns void

      • transformer: ((editorContentLines: string[]) => any)
          • (editorContentLines: string[]): any
          • Parameters

            • editorContentLines: string[]

            Returns any

    Returns null

Generated using TypeDoc