Skip to content

PasswordEditor

Members

EDITOR_TYPE

Source code

PasswordEditor.EDITOR_TYPE ⇒ string

Methods

close

Source code

passwordEditor.close()

Closes the editor. Removes the input event listener, cancels any pending reveal timer, resets reveal-mode state, and restores the input to type="password".

createElements

Source code

passwordEditor.createElements()

Creates the editor’s DOM elements. Replaces the <textarea> from TextEditor with an <input type="password"> element so that the browser masks its content natively.

getValue

Source code

passwordEditor.getValue() ⇒ string

Returns the current editor value. In reveal-delay mode returns the real (unmasked) value stored in #realValue rather than reading the input’s display value, which may contain hash symbols.

open

Source code

passwordEditor.open()

Opens the editor. When hashRevealDelay is set, switches the input to type="text" and installs a manual masking handler so each typed character is briefly visible before being replaced by hashSymbol.

setValue

Source code

passwordEditor.setValue([value])

Sets the editor value. In reveal-delay mode stores the plain value in #realValue and updates the input display with masked characters. When called from beginEditing() before open() has set #inRevealMode, pre-populates #realValue so open() can mask it immediately on display.

ParamTypeDescription
[value]stringoptional The value to set.