autofocus textarea
This commit is contained in:
parent
6963e068c8
commit
a6fc9b4346
2 changed files with 5 additions and 1 deletions
|
|
@ -19,7 +19,8 @@ let insert_quote el _event =
|
|||
Format.sprintf "%s[>%s] " content emojid
|
||||
else Format.sprintf "%s@\n[>%s] " content emojid
|
||||
in
|
||||
El.set_prop inner_html (Jstr.of_string new_content) textarea
|
||||
El.set_prop inner_html (Jstr.of_string new_content) textarea;
|
||||
El.set_has_focus true textarea
|
||||
|
||||
let () =
|
||||
log "add inser_quote event on post links@\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue