PasswordEditor
Members
EDITOR_TYPE
PasswordEditor.EDITOR_TYPE ⇒ string
Methods
close
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
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
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
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
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.
| Param | Type | Description |
|---|---|---|
| [value] | string | optional The value to set. |