mirror of https://github.com/vector-im/riot-web
Backport: linkify emotes
parent
f3b30477ce
commit
88aaf82c88
|
@ -16,6 +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(), linkifyMatrix.options);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue