Skip to content

Commit

Permalink
fixed issue #47 and editors styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Dec 13, 2022
1 parent fce4741 commit 229e3af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion resources/views/fields/ckeditor.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -156,5 +156,7 @@ classes: true,
<style>
.ck-editor__editable {
max-height: 400px;
background-color: white!important;
color: black!important;
}
</style>
9 changes: 8 additions & 1 deletion resources/views/fields/quill.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div id="quill_{{ $field->id() }}">
<div id="quill_{{ $field->id() }}" style="height: auto;">
{!! $field->formViewValue($item) ?? '' !!}
</div>

Expand All @@ -7,3 +7,10 @@
theme: 'snow'
});
</script>

<style>
.ql-container, .ql-toolbar {
background-color: white!important;
color: black!important;
}
</style>

0 comments on commit 229e3af

Please sign in to comment.