File tree Expand file tree Collapse file tree
skins/base/views/molecules
src/controllers/molecules Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 "matrix-js-sdk" : " 0.1.1" ,
2727 "q" : " ^1.4.1" ,
2828 "react" : " ^0.13.0" ,
29- "react-loader" : " ^1.4.0"
29+ "react-loader" : " ^1.4.0" ,
30+ "linkifyjs" : " ^2.0.0-beta.4"
3031 },
3132 "devDependencies" : {
3233 "catw" : " ^1.0.1" ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module.exports = React.createClass({
2727 render : function ( ) {
2828 var content = this . props . mxEvent . getContent ( ) ;
2929 return (
30- < span className = "mx_MNoticeTile mx_messageTileType" >
30+ < span ref = "content" className = "mx_MNoticeTile mx_messageTileType" >
3131 { content . body }
3232 </ span >
3333 ) ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module.exports = React.createClass({
2727 render : function ( ) {
2828 var content = this . props . mxEvent . getContent ( ) ;
2929 return (
30- < span className = "mx_MTextTile mx_messageTileType" >
30+ < span ref = "content" className = "mx_MTextTile mx_messageTileType" >
3131 { content . body }
3232 </ span >
3333 ) ;
Original file line number Diff line number Diff line change @@ -16,5 +16,10 @@ limitations under the License.
1616
1717'use strict' ;
1818
19+ var linkifyElement = require ( 'linkifyjs/element' ) ;
20+
1921module . exports = {
22+ componentDidMount : function ( ) {
23+ linkifyElement ( this . refs . content . getDOMNode ( ) ) ;
24+ }
2025} ;
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ limitations under the License.
1616
1717'use strict' ;
1818
19+ var linkifyElement = require ( 'linkifyjs/element' ) ;
20+
1921module . exports = {
22+ componentDidMount : function ( ) {
23+ linkifyElement ( this . refs . content . getDOMNode ( ) ) ;
24+ }
2025} ;
2126
You can’t perform that action at this time.
0 commit comments