mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
only try to syntax highlight html
This commit is contained in:
parent
9038b984ff
commit
01641543da
@ -26,10 +26,12 @@ module.exports = React.createClass({
|
||||
mixins: [MNoticeTileController],
|
||||
|
||||
componentDidMount: function() {
|
||||
if (this.props.mxEvent.getContent().format === "org.matrix.custom.html")
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
},
|
||||
|
||||
componentDidUpdate: function() {
|
||||
if (this.props.mxEvent.getContent().format === "org.matrix.custom.html")
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
},
|
||||
|
||||
|
@ -26,10 +26,12 @@ module.exports = React.createClass({
|
||||
mixins: [MTextTileController],
|
||||
|
||||
componentDidMount: function() {
|
||||
if (this.props.mxEvent.getContent().format === "org.matrix.custom.html")
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
},
|
||||
|
||||
componentDidUpdate: function() {
|
||||
if (this.props.mxEvent.getContent().format === "org.matrix.custom.html")
|
||||
HtmlUtils.highlightDom(this.getDOMNode());
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user