mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 17:25:50 +03:00
Backport: linkify emotes
This commit is contained in:
parent
f3b30477ce
commit
88aaf82c88
1 changed files with 9 additions and 0 deletions
|
@ -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 a new issue