Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-libclient
Commits
558d552f
Commit
558d552f
authored
Nov 18, 2019
by
Ming Rui Zhang
Browse files
chatview: grow text area when pasting multiple lines
Change-Id: I43c2a84289bfd19a7012981690a9d1de88cc7977
parent
3e386d01
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/web-chatview/chatview.js
View file @
558d552f
...
...
@@ -2367,6 +2367,7 @@ function replaceText(text) {
var
output
=
[
currentContent
.
slice
(
0
,
start
),
text
,
currentContent
.
slice
(
end
)].
join
(
""
)
input
.
value
=
output
setCaretPosition
(
input
,
start
+
text
.
length
)
grow_text_area
()
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment