1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 08:23:00 +00:00

Add anchorme() support. (#262)

This will "linkify" text inside of messages with anchor tags so they are clickable.
This commit is contained in:
Greg Ross
2018-12-10 14:48:18 -05:00
committed by Loïc Blot
parent 7abea7cc9b
commit be8824b889
4 changed files with 7 additions and 1 deletions
+4
View File
@@ -166,6 +166,10 @@
float: left;
}
.msg-sent a:link, .msg-sent a:visited, .msg-recv a:link, .msg-recv a:visited {
text-decoration: underline;
}
.msg-date {
color: #666;
font-style: italic;
+1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -125,7 +125,7 @@ var Conversation = new Vue({
'id': id,
'type': msgClass,
'date': new Date(id * 1),
'content': twemoji.parse(escapeHTML(vals['msg']), twemojiOptions)
'content': twemoji.parse(anchorme(escapeHTML(vals['msg'])), twemojiOptions)
});
buf = true;
msgCount++;
+1
View File
@@ -14,6 +14,7 @@ use \OCA\OcSms\Lib\CountryCodes;
\OCP\Util::addScript('ocsms', 'devel/helpers');
\OCP\Util::addScript('ocsms', 'devel/notifications');
\OCP\Util::addScript('ocsms', 'twemoji/twemoji.min');
\OCP\Util::addScript('ocsms', 'anchorme.min');
?>
<script type="text/x-template" id="modal-template" xmlns:v-on="http://www.w3.org/1999/xhtml"