up
This commit is contained in:
parent
1f61c2ab1d
commit
af0ee2a49e
66 changed files with 12263 additions and 2059 deletions
13
2-ui/4-forms-controls/2-focus-blur/3-editable-div/task.md
Normal file
13
2-ui/4-forms-controls/2-focus-blur/3-editable-div/task.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
importance: 5
|
||||
|
||||
---
|
||||
|
||||
# Editable div
|
||||
|
||||
Create a `<div>` that turns into `<textarea>` when clicked.
|
||||
|
||||
The textarea allows to edit the HTML in the `<div>`.
|
||||
|
||||
When the user presses `key:Enter` or it looses focus, the `<textarea>` turns back into `<div>`, and its content becomes HTML in `<div>`.
|
||||
|
||||
[demo src="solution"]
|
Loading…
Add table
Add a link
Reference in a new issue