Added support of copy/paste of multi lines content

This commit is contained in:
Emmanuel ROHEE 2014-09-11 15:46:24 +02:00
parent aa347b52ba
commit 806c49a690
2 changed files with 7 additions and 1 deletions

View File

@ -257,6 +257,7 @@ a:active { color: #000; }
#mainInput { #mainInput {
width: 100%; width: 100%;
resize: none;
} }
.blink { .blink {
@ -514,6 +515,10 @@ a:active { color: #000; }
text-align: left ! important; text-align: left ! important;
} }
.bubble .message {
/* Break lines when encountering CR+LF */
white-space: pre;
}
.bubble .messagePending { .bubble .messagePending {
opacity: 0.3 opacity: 0.3
} }

View File

@ -97,6 +97,7 @@
ng-bind-html="'* ' + (members[msg.user_id].displayname || msg.user_id) + ' ' + msg.content.body | linky:'_blank'"/> ng-bind-html="'* ' + (members[msg.user_id].displayname || msg.user_id) + ' ' + msg.content.body | linky:'_blank'"/>
<span ng-show='msg.content.msgtype === "m.text"' <span ng-show='msg.content.msgtype === "m.text"'
class="message"
ng-class="msg.echo_msg_state" ng-class="msg.echo_msg_state"
ng-bind-html="((msg.content.msgtype === 'm.text') ? msg.content.body : '') | linky:'_blank'"/> ng-bind-html="((msg.content.msgtype === 'm.text') ? msg.content.body : '') | linky:'_blank'"/>
@ -138,7 +139,7 @@
{{ state.user_id }} {{ state.user_id }}
</td> </td>
<td width="*"> <td width="*">
<input id="mainInput" ng-model="textInput" ng-enter="send()" ng-focus="true" autocomplete="off" tab-complete/> <textarea id="mainInput" rows="1" ng-model="textInput" ng-enter="send()" ng-focus="true" autocomplete="off" tab-complete/>
</td> </td>
<td id="buttonsCell"> <td id="buttonsCell">
<button ng-click="send()">Send</button> <button ng-click="send()">Send</button>