File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -313,9 +313,10 @@ export default {
313
313
if (! url) return
314
314
let imageCode = ' [img]' + url + ' [/img]'
315
315
v .preview = false // show compose tab
316
- if (props .threadEditorMode ) v .threadCopy .body = v .threadCopy .body + imageCode
317
- else if (props .postEditorMode ) v .posting .post .body = v .posting .post .body + imageCode
318
- else if (props .currentMessage ) v .newMessage .content .body = v .newMessage .content .body + imageCode
316
+ console .log (v .threadCopy , v .posting , v .newMessage )
317
+ if (props .threadEditorMode ) v .threadCopy .body = ` ${ v .threadCopy .body ? v .threadCopy .body + ' \n ' : ' ' }${ imageCode} `
318
+ else if (props .postEditorMode ) v .posting .post .body = ` ${ v .posting ? .post ? .body ? v .posting .post .body + ' \n ' : ' ' }${imageCode}`
319
+ else if (props.currentMessage) v.newMessage.content.body = ` ${v .newMessage ? .content ? .body ? v .newMessage .content .body + ' \n ' : ' ' }${imageCode}`
319
320
}
320
321
321
322
/* View Data */
You can’t perform that action at this time.
0 commit comments