Variable: blurEnabled
If
Variable: editingCell
Reference to the
Variable: emptyLabelText
Text to be displayed for empty labels. Default is '' or '
' in Firefox as
a workaround for the missing cursor bug for empty content editable. This can
be set to eg. "[Type Here]" to easier visualize editing of empty labels. The
value is only displayed before the first keystroke and is never used as the
actual editing value.
Variable: escapeCancelsEditing
If true, pressing the escape key will stop editing and not accept the new value. Change this to false to accept the new value on escape, and cancel editing on Shift+Escape instead. Default is true.
Variable: graph
Reference to the enclosing
Variable: initialValue
Holds the initial editing value to check if the current value was modified.
Variable: minResize
Defines the minimum width and height to be used in
Variable: modified
Specifies if the label has been modified.
Variable: selectText
Specifies if the text should be selected when editing starts. Default is true.
Variable: textNode
Reference to the label DOM node that has been hidden.
Variable: textarea
Holds the DIV that is used for text editing. Note that this may be null before the first
edit. Instantiated in
Variable: trigger
Reference to the event that was used to start editing.
Variable: wordWrapPadding
Correction factor for word wrapping width. Default is 2 in quirks, 0 in IE 11 and 1 in all other browsers and modes.
Variable: zIndex
Specifies the zIndex for the textarea. Default is 5.
Function: applyValue
Called in
Function: clearSelection
Function: destroy
Destroys the editor and removes all associated resources.
Function: focusLost
Called if the textarea has lost focus.
Function: getBackgroundColor
Returns the background color for the in-place editor. This implementation always returns null.
Function: getCurrentValue
Returns the current editing value.
Function: getEditingCell
Returns the cell that is currently being edited or null if no cell is being edited.
Function: getEditorBounds
Returns the
Function: getEmptyLabelText
Returns the initial label value to be used of the label of the given
cell is empty. This label is displayed and cleared on the first keystroke.
This implementation returns
Parameters:
cell -
Function: getInitialValue
Gets the initial editing value for the given cell.
Function: getMinimumSize
Returns the minimum width and height for editing the given state.
Function: init
Creates the
Function: installListeners
Installs listeners for focus, change and standard key event handling.
Function: isCancelEditingKeyEvent
Returns true if
Function: isEventSource
Returns true if this editor is the source for the given native event.
Function: isHideLabel
Returns true if the label should be hidden while the cell is being edited.
Function: isLegacyEditor
Returns true if max-width is not supported or if the SVG root element in in the graph does not have CSS position absolute. In these cases the text editor must use CSS position absolute to avoid an offset but it will have a less accurate line wrapping width during the text editing preview. This implementation returns true for IE8- and quirks mode or if the CSS position of the SVG element is not absolute.
Function: isSelectText
Returns
Function: isStopEditingEvent
Returns true if the given keydown event should stop cell editing. This returns true if F2 is pressed of if <mxGraph.enterStopsCellEditing> is true and enter is pressed without control or shift.
Function: prepareTextarea
Prepares the textarea for getting its value in
Function: resize
Returns
Function: startEditing
Starts the editor for the given cell.
Parameters:
cell -
Function: stopEditing
Stops the editor and applies the value if cancel is false.
Generated using TypeDoc
Variable: autoSize
Specifies if the textarea should be resized while the text is being edited. Default is true.