Skip to content

Commit 3b4fde4

Browse files
authored
Merge pull request #5242 from Laravel-Backpack/summernote-field-fix
Make Summernote dropdowns work in Bootstrap 5 & 4
2 parents 17614b8 + 033e1c4 commit 3b4fde4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/resources/assets/css/common.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,4 +518,9 @@ form .select2.select2-container {
518518
justify-content: center;
519519
align-items: center;
520520
text-align: center;
521+
}
522+
523+
/* Summernote */
524+
.note-editor.note-frame.fullscreen {
525+
background-color: white;
521526
}

src/resources/views/crud/fields/summernote.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
{{-- FIELD CSS - will be loaded in the after_styles section --}}
3232
@push('crud_fields_styles')
3333
{{-- include summernote css --}}
34-
@basset('https://unpkg.com/[email protected]/dist/summernote-bs4.min.css')
34+
@basset('https://unpkg.com/[email protected]/dist/summernote-lite.min.css')
3535
@basset('https://unpkg.com/[email protected]/dist/font/summernote.woff2', false)
3636
@bassetBlock('backpack/crud/fields/checklist-field.css')
3737
<style type="text/css">
@@ -45,7 +45,7 @@
4545
{{-- FIELD JS - will be loaded in the after_scripts section --}}
4646
@push('crud_fields_scripts')
4747
{{-- include summernote js --}}
48-
@basset('https://unpkg.com/[email protected]/dist/summernote.min.js')
48+
@basset('https://unpkg.com/[email protected]/dist/summernote-lite.min.js')
4949
@bassetBlock('backpack/crud/fields/summernote-field.js')
5050
<script>
5151
function bpFieldInitSummernoteElement(element) {

0 commit comments

Comments
 (0)