Skip to content

Commit 86aa617

Browse files
authored
Merge pull request #1552 from Spidi/fix-multiple-quotes
fix: formatting of multiple nested quotes
2 parents 8f99c13 + 8a8a09a commit 86aa617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/forum/topic.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class="btn btn-xs btn-xxs btn-danger">@lang('common.delete')</button></a>
124124
</span>
125125
</aside>
126126

127-
<article class="col-md-9 post-content">
127+
<article class="col-md-9 post-content" data-bbcode="{{ $p->content }}">
128128
@joypixels($p->getContentHtml())
129129
</article>
130130

@@ -325,7 +325,7 @@ class='label label-sm label-success'>@lang('common.remove')
325325
$(document).ready(function() {
326326
$('.profil').on('click', 'button#quote', function () {
327327
let author = $(this).closest('.profil').find('.post-info-username').first().text();
328-
let text = $(this).closest('.profil').find('.post-content').text().replace('@here', '');
328+
let text = $(this).closest('.profil').find('.post-content').data('bbcode');
329329
$("#topic-response").wysibb().insertAtCursor('[quote=@'+author.trim()+']'+text.trim()+'[/quote]\r\n', true);
330330
});
331331
});

0 commit comments

Comments
 (0)