File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,27 @@ class="comment__datetime"
20
20
</li >
21
21
@endif
22
22
23
+ <li class =" comment__toolbar-item" >
24
+ <button
25
+ class =" post__quote"
26
+ title =" {{ __ (' forum.quote' ) } }"
27
+ x-on:click ="
28
+ input = document.getElementById(
29
+ '{{ $comment -> isParent () ? ' new-comment__textarea' : ' reply-comment' } } '
30
+ );
31
+ input.value +=
32
+ '[quote={{ \htmlspecialchars ($comment -> anon ? ' Anonymous' : ' @' . $comment -> user -> username ) } } ]';
33
+ input.value += decodeURIComponent(
34
+ escape(atob('{{ base64_encode (\htmlspecialchars ($comment -> content )) } } '))
35
+ );
36
+ input.value += '[/quote]';
37
+ input.dispatchEvent(new Event('input'));
38
+ input.focus();
39
+ "
40
+ >
41
+ <i class =" {{ \config (' other.font-awesome' ) } } fa-quote-left" ></i >
42
+ </button >
43
+ </li >
23
44
@if ($comment -> user_id === auth ()-> id () || auth ()-> user ()-> group -> is_modo )
24
45
<li class =" comment__toolbar-item" >
25
46
<button wire:click =" $toggle('isEditing')" class =" comment__edit" >
You can’t perform that action at this time.
0 commit comments