mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Add quill bundles
This commit is contained in:
parent
1dbfcae041
commit
3612990d43
4 changed files with 8 additions and 2 deletions
1
resources/assets/js/quill.js
vendored
Normal file
1
resources/assets/js/quill.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
window.Quill = require('quill');
|
1
resources/assets/sass/quill.scss
vendored
Normal file
1
resources/assets/sass/quill.scss
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
@import '~quill/dist/quill.snow.css';
|
|
@ -38,7 +38,7 @@
|
|||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/quill/1.3.6/quill.snow.min.css" integrity="sha256-qc/vMbPSg7/JfxMwKeMv3wlx7ojG33FXfYfO0UJIsc0=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="{{mix('css/quill.css')}}"/>
|
||||
<style type="text/css">
|
||||
.ql-container {
|
||||
box-sizing: border-box;
|
||||
|
@ -52,7 +52,7 @@
|
|||
</style>
|
||||
@endpush
|
||||
@push('scripts')
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/quill/1.3.6/quill.min.js" integrity="sha256-3oYBiGm16EW9wQH8G1VhGh43XgivbO5KaB10RhA9phE=" crossorigin="anonymous"></script>
|
||||
<script src="{{mix('js/quill.js')}}"></script>
|
||||
|
||||
<script>
|
||||
window.editor = new Quill('#editor', {
|
||||
|
|
4
webpack.mix.js
vendored
4
webpack.mix.js
vendored
|
@ -8,6 +8,9 @@ mix.sass('resources/assets/sass/app.scss', 'public/css', {
|
|||
})
|
||||
.sass('resources/assets/sass/landing.scss', 'public/css', {
|
||||
implementation: require('node-sass')
|
||||
})
|
||||
.sass('resources/assets/sass/quill.scss', 'public/css', {
|
||||
implementation: require('node-sass')
|
||||
}).version();
|
||||
|
||||
mix.js('resources/assets/js/app.js', 'public/js')
|
||||
|
@ -21,6 +24,7 @@ mix.js('resources/assets/js/app.js', 'public/js')
|
|||
.js('resources/assets/js/search.js', 'public/js')
|
||||
.js('resources/assets/js/developers.js', 'public/js')
|
||||
.js('resources/assets/js/loops.js', 'public/js')
|
||||
.js('resources/assets/js/quill.js', 'public/js')
|
||||
// .js('resources/assets/js/embed.js', 'public')
|
||||
// .js('resources/assets/js/direct.js', 'public/js')
|
||||
.extract([
|
||||
|
|
Loading…
Reference in a new issue