Skip to content

Commit

Permalink
Merge pull request #1278 from innocente205/patch-2
Browse files Browse the repository at this point in the history
Update topic.blade.php
  • Loading branch information
HDVinnie authored Apr 17, 2020
2 parents f7cc012 + 54d8d5d commit 5624aae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions resources/views/forum/topic.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class='label label-sm label-success'>@lang('common.remove')
allButtons: {
quote: {
transform: {
'<div class="wbbquote"><cite><b>{AUTHOR}</b> wrote:</cite> <br /> <br />{SELTEXT}</div>': '[quote={AUTHOR}]{SELTEXT}[/quote]'
'<div class="wbbquote"><cite><b>{AUTHOR}</b> wrote:</cite> <br /> <br />{SELTEXT}<br /><br /></div>': '[quote={AUTHOR}]{SELTEXT}[/quote]'
}
}
}
Expand All @@ -338,12 +338,12 @@ class='label label-sm label-success'>@lang('common.remove')
let editor = $("#topic-response").wysibb(wbbOpt);
$('.profil').on('click', 'button#quote', function() {
let author = $(this).closest('.post-info').find('.badge-user').first().text();
let text = $(this).closest('.profil').find('.post-content').first().text().replace('@here',
'');
let author = $(this).closest('.post-info').find('.badge-user').first().text().trim();
let text = $(this).closest('.profil').find('.post-content').first().html().replace('@here',
'').trim();
editor.execCommand('quote', {
author: '@' + author + ' ',
author: '@' + author,
seltext: text
});
});
Expand Down

0 comments on commit 5624aae

Please sign in to comment.