Linkify user IDs and room aliases (to nothing at the moment because we don't have anything to do with them)

This commit is contained in:
David Baker 2015-07-10 14:37:13 +01:00
parent 27d92fa98a
commit ed2cc33616
3 changed files with 125 additions and 2 deletions

View file

@ -16,10 +16,13 @@ limitations under the License.
'use strict';
var linkify = require('linkifyjs');
var linkifyElement = require('linkifyjs/element');
var linkifyMatrix = require('../../linkify-matrix.js');
linkifyMatrix(linkify);
module.exports = {
componentDidMount: function() {
linkifyElement(this.refs.content.getDOMNode());
linkifyElement(this.refs.content.getDOMNode(), linkifyMatrix.options);
}
};

View file

@ -16,11 +16,15 @@ limitations under the License.
'use strict';
var linkify = require('linkifyjs');
var linkifyElement = require('linkifyjs/element');
var linkifyMatrix = require('../../linkify-matrix');
linkifyMatrix(linkify);
module.exports = {
componentDidMount: function() {
linkifyElement(this.refs.content.getDOMNode());
linkifyElement(this.refs.content.getDOMNode(), linkifyMatrix.options);
}
};