Skip to content

Commit

Permalink
更新:回复评论支持选择自定义表情
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuchunshu committed Feb 10, 2023
1 parent 1762eb4 commit 592c405
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<label class="form-label">回复内容</label>
<input type="hidden" name="comment_id" value="" id="reply-comment-id">
<textarea class="form-control" name="content" id="reply-comment-content" data-bs-toggle="autosize" placeholder="说点什么..."></textarea>
<div class="mt-3 d-flex flex-lg-row-reverse">
<div class="OwO" id="create-comment-owo2">[OωO表情]</div>
</div>
</div>
@endif
</div>
Expand Down
9 changes: 9 additions & 0 deletions app/Plugins/Comment/resources/views/Widget/topic.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@
width: '300px',
maxHeight: '250px',
});

var OwO_demo2 = new OwO({
logo: '[OωO表情]',
container: document.getElementById('create-comment-owo2'),
target: document.getElementById('reply-comment-content'),
api: '/api/core/OwO.json',
width: '300px',
maxHeight: '250px',
});
</script>
@endif
</div>
Expand Down

0 comments on commit 592c405

Please sign in to comment.