File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
framework/core/js/src/forum/components Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,22 @@ export default class CommentPost extends Post {
51
51
< header className = "Post-header" >
52
52
< ul > { listItems ( this . headerItems ( ) . toArray ( ) ) } </ ul >
53
53
</ header > ,
54
- < div className = "Post-body" >
55
- { this . isEditing ( ) ? < ComposerPostPreview className = "Post-preview" composer = { app . composer } /> : m . trust ( this . attrs . post . contentHtml ( ) ) }
56
- </ div > ,
54
+ < div className = "Post-body" > { this . contentItems ( ) . toArray ( ) } </ div > ,
57
55
] ) ;
58
56
}
59
57
58
+ contentItems ( ) {
59
+ const items = new ItemList ( ) ;
60
+
61
+ items . add (
62
+ 'content' ,
63
+ this . isEditing ( ) ? < ComposerPostPreview className = "Post-preview" composer = { app . composer } /> : m . trust ( this . attrs . post . contentHtml ( ) ) ,
64
+ 100
65
+ ) ;
66
+
67
+ return items ;
68
+ }
69
+
60
70
refreshContent ( ) {
61
71
const contentHtml = this . isEditing ( ) ? '' : this . attrs . post . contentHtml ( ) ;
62
72
You can’t perform that action at this time.
0 commit comments