A Plugin to create drag & drop mock data inside the example app and tests.

Hierarchy (view full)

Constructors

  • Parameters

    • editor: default

    Returns MockInputExamplePlugin

    Inherit Doc

Properties

pluginName: string = PLUGIN_NAME

Methods

  • Triggers the evaluation if the given uris are linkable in the richtext.

    First call triggers the evaluation while subsequent calls will just return the evaluation state, which means either "PENDING" or the result.

    This is needed for "dragover" because the event is executed synchronously but multiple times (when moving the cursor further).

    This function can be used in tests to ensure a drop is allowed.

    Parameters

    • uris: string[]

      the uris to evaluate if they are linkable.

    Returns undefined | IsLinkableEvaluationResult

  • Triggers the evaluation if the given uris are droppable in the richtext.

    First call triggers the evaluation while subsequent calls will just return the evaluation state, which means either "PENDING" or the result.

    This is needed for "dragover" because the event is executed synchronously but multiple times (when moving the cursor further).

    This function can be used in tests to ensure a drop is allowed.

    Parameters

    • uris: string[]

      the uris to evaluate if they are droppable.

    Returns undefined | IsDroppableEvaluationResult