mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Comments: Added input wysiwyg for creating/updating comments
Not supporting old content, existing HTML or updating yet.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
option:page-comments:page-id="{{ $page->id }}"
|
||||
option:page-comments:created-text="{{ trans('entities.comment_created_success') }}"
|
||||
option:page-comments:count-text="{{ trans('entities.comment_count') }}"
|
||||
option:page-comments:wysiwyg-language="{{ $locale->htmlLang() }}"
|
||||
option:page-comments:wysiwyg-text-direction="{{ $locale->htmlDirection() }}"
|
||||
class="comments-list"
|
||||
aria-label="{{ trans('entities.comments') }}">
|
||||
|
||||
@@ -24,7 +26,6 @@
|
||||
|
||||
@if(userCan('comment-create-all'))
|
||||
@include('comments.create')
|
||||
|
||||
@if (!$commentTree->empty())
|
||||
<div refs="page-comments@addButtonContainer" class="text-right">
|
||||
<button type="button"
|
||||
@@ -34,4 +35,11 @@
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if(userCan('comment-create-all') || $commentTree->canUpdateAny())
|
||||
@push('post-app-scripts')
|
||||
<script src="{{ versioned_asset('libs/tinymce/tinymce.min.js') }}" nonce="{{ $cspNonce }}"></script>
|
||||
@include('form.editor-translations')
|
||||
@endpush
|
||||
@endif
|
||||
|
||||
</section>
|
Reference in New Issue
Block a user