Skip to content

Commit 6bd26a3

Browse files
Update task.md
1 parent 75466a1 commit 6bd26a3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • 2-ui/4-forms-controls/2-focus-blur/3-editable-div

2-ui/4-forms-controls/2-focus-blur/3-editable-div/task.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ importance: 5
22

33
---
44

5-
# Editable div
5+
# div قابل ویرایش
66

7-
Create a `<div>` that turns into `<textarea>` when clicked.
7+
یک `<div>` ایجاد کنید که وقتی روی آن کلیک می‌شود به `<textarea>` تبدیل شود.
88

99
The textarea allows to edit the HTML in the `<div>`.
10+
با کمک textarea می‌توانید HTML را در `<div>` ویرایش کنید.
1011

11-
When the user presses `key:Enter` or it loses focus, the `<textarea>` turns back into `<div>`, and its content becomes HTML in `<div>`.
12+
13+
وقتی که کاربر `key:Enter` را فشار دهد یا آن focus را از دست بدهد، `<textarea>` دوباره به `<div>` تبدیل می‌شود و محتوای آن در `<div>` به HTML تبدیل می‌شود.
1214

1315
[demo src="solution"]

0 commit comments

Comments
 (0)