Components
← All components

Editable

stimeo--editable

Editing in place: click or F2 to start, Enter to save, Esc to cancel.

  • Core

Turns displayed text into something you can rewrite in place. Click or press F2 to start, and focus moves into the field with the text selected. Enter saves and Esc cancels; for longer text, Ctrl or Command with Enter saves. Either way focus returns to the display when you are done. Clicking elsewhere saves too, unless what you clicked is a button belonging to the editor, which means you have not left. Saving and cancelling are also available as buttons, so the keyboard is not required. You are told only when the value really changed. Whether it is being edited is readable from CSS, so the look is yours.

running
Click the title to edit it. Enter saves and Esc cancels, and the buttons do the same.
Click the description to edit it (Enter for a newline, Ctrl+Enter / Cmd+Enter saves, Esc cancels).

Keyboard

KeyAction
Enter / Space / F2 Enter edit mode from the display element.
Enter Save (single-line); inserts a newline in a textarea.
Ctrl+Enter / Cmd+Enter Save when editing a multiline textarea.
Esc Discard changes and return to display mode.