mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-06 15:36:12 +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:
parent
7abea7cc9b
commit
be8824b889
@ -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
js/anchorme.min.js
vendored
Normal file
1
js/anchorme.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -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++;
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user