Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Class ProseMirrorInputRules

    A class responsible for building the input rules for the ProseMirror editor.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get key(): PluginKey<any>

      A unique key for this plugin that can be used to identify a plugin instance in any given editor.

      Returns PluginKey<any>

    Methods

    • Build input rules for node types present in the schema.

      Returns InputRule[]

    • Build the plugin.

      Parameters

      • schema: Schema

        The ProseMirror schema to build the plugin against.

      • Optionaloptions: { minHeadingLevel?: number } = {}

        Additional options to pass to the plugin.

        • OptionalminHeadingLevel?: number

          The minimum heading level to start from when generating heading input rules. The resulting heading level for a heading rule is equal to the number of leading hashes minus this number.

      Returns Plugin<PluginState>