From 229e3afb0e5f616e6404f53e2dc7128d11dd6ccd Mon Sep 17 00:00:00 2001 From: LT Date: Tue, 13 Dec 2022 11:03:17 +0300 Subject: [PATCH] fixed issue #47 and editors styles --- resources/views/fields/ckeditor.blade.php | 4 +++- resources/views/fields/quill.blade.php | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/resources/views/fields/ckeditor.blade.php b/resources/views/fields/ckeditor.blade.php index d0e49dc5e..dc1d72792 100644 --- a/resources/views/fields/ckeditor.blade.php +++ b/resources/views/fields/ckeditor.blade.php @@ -119,7 +119,7 @@ classes: true, }, simpleUpload: { // The URL that the images are uploaded to. - uploadUrl: '{{ route('admin.attachments') }}', + uploadUrl: '{{ route(config('moonshine.route.prefix') . '.attachments') }}', }, // The "super-build" contains more premium features that require additional configuration, disable them below. // Do not turn them on unless you read the documentation and know how to configure them and setup the editor. @@ -156,5 +156,7 @@ classes: true, diff --git a/resources/views/fields/quill.blade.php b/resources/views/fields/quill.blade.php index 1af26e88b..129dd2e4a 100644 --- a/resources/views/fields/quill.blade.php +++ b/resources/views/fields/quill.blade.php @@ -1,4 +1,4 @@ -
+
{!! $field->formViewValue($item) ?? '' !!}
@@ -7,3 +7,10 @@ theme: 'snow' }); + +