Class PasteHandler

A tool that handles paste events (e.g. as triggered by ctrl+V).

While ToolController has a PasteHandler in its default list of tools, if a non-default set is being used, PasteHandler can be added as follows:

const toolController = editor.toolController;
toolController.addTool(new PasteHandler(editor));

Hierarchy (view full)

Constructors

Properties

description: string

Methods

  • Called when the tool is removed/when the editor is destroyed. Subclasses that override this method must call super.onDestroy().

    Returns void

  • Returns true iff there are additional pointers down and the tool should remain active to handle the additional events.

    For most purposes, this should return false or nothing.

    Parameters

    Returns boolean | void

OpenSource licenses