documentationfor yFiles for HTML 3.0.0.3

TextEditorInputMode

An IInputMode implementation that displays a textarea in the CanvasComponent to let the user edit a text.

Inheritance Hierarchy
TextEditorInputMode
Implemented Interfaces

Remarks

Hitting escape or enter will cancel or stop editing.

This mode is exclusive by default.

The editorContainer is using the yfiles-labeleditbox CSS class and provides additional classes for the enter and leave phase of the container.

Examples

Typically the TextEditorInputMode is installed as child mode of an EditLabelInputMode and can be retrieved from the textEditorInputMode property.
Getting the TextEditorInputMode from its parent input mode
const textEditorInputMode = mode.editLabelInputMode.textEditorInputMode

Related Reading in the Developer's Guide

The CSS styling options for the editor container are presented in detail in the section CSS Transition or Animation for the Input Element .

Type Details

yFiles module
view

Constructors

Properties

Methods

Events