StatusContent: delete inline quote from markup
This commit is contained in:
parent
2d5acc3236
commit
c3a82cb777
1 changed files with 12 additions and 0 deletions
|
@ -75,6 +75,17 @@ class StatusContent extends React.PureComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deleteInlineQuote() {
|
||||||
|
const node = this.node;
|
||||||
|
if (!node) return;
|
||||||
|
|
||||||
|
const inlineQuote = node.querySelector('.quote-inline');
|
||||||
|
|
||||||
|
if (inlineQuote) {
|
||||||
|
inlineQuote.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setCollapse() {
|
setCollapse() {
|
||||||
const node = this.node;
|
const node = this.node;
|
||||||
|
|
||||||
|
@ -106,6 +117,7 @@ class StatusContent extends React.PureComponent {
|
||||||
refresh = () => {
|
refresh = () => {
|
||||||
this.setCollapse();
|
this.setCollapse();
|
||||||
this._updateStatusLinks();
|
this._updateStatusLinks();
|
||||||
|
this.deleteInlineQuote();
|
||||||
this.setOnlyEmoji();
|
this.setOnlyEmoji();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue