Add placeholder support to text_editor widget
This commit is contained in:
parent
a5b1a1df54
commit
e9e06c8fe2
5 changed files with 68 additions and 9 deletions
|
|
@ -59,6 +59,7 @@ impl Markdown {
|
|||
|
||||
fn view(&self) -> Element<Message> {
|
||||
let editor = text_editor(&self.content)
|
||||
.placeholder("Type your Markdown here...")
|
||||
.on_action(Message::Edit)
|
||||
.height(Fill)
|
||||
.padding(10)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue