mirror of https://github.com/vector-im/riot-web
only try to syntax highlight html
parent
9038b984ff
commit
01641543da
|
@ -26,11 +26,13 @@ module.exports = React.createClass({
|
|||
mixins: [MNoticeTileController],
|
||||
|
||||
componentDidMount: function() {
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
if (this.props.mxEvent.getContent().format === "org.matrix.custom.html")
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
},
|
||||
|
||||
componentDidUpdate: function() {
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
if (this.props.mxEvent.getContent().format === "org.matrix.custom.html")
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
},
|
||||
|
||||
shouldComponentUpdate: function(nextProps) {
|
||||
|
|
|
@ -26,11 +26,13 @@ module.exports = React.createClass({
|
|||
mixins: [MTextTileController],
|
||||
|
||||
componentDidMount: function() {
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
if (this.props.mxEvent.getContent().format === "org.matrix.custom.html")
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
},
|
||||
|
||||
componentDidUpdate: function() {
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
if (this.props.mxEvent.getContent().format === "org.matrix.custom.html")
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
},
|
||||
|
||||
shouldComponentUpdate: function(nextProps) {
|
||||
|
|
Loading…
Reference in New Issue