mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-22 12:51:16 +08:00
Base layout: Changed main app script to be module loaded
Some checks failed
analyse-php / build (push) Has been cancelled
lint-js / build (push) Has been cancelled
lint-php / build (push) Has been cancelled
test-js / build (push) Has been cancelled
test-migrations / build (8.1) (push) Has been cancelled
test-migrations / build (8.2) (push) Has been cancelled
test-migrations / build (8.3) (push) Has been cancelled
test-php / build (8.1) (push) Has been cancelled
test-php / build (8.2) (push) Has been cancelled
test-php / build (8.3) (push) Has been cancelled
Some checks failed
analyse-php / build (push) Has been cancelled
lint-js / build (push) Has been cancelled
lint-php / build (push) Has been cancelled
test-js / build (push) Has been cancelled
test-migrations / build (8.1) (push) Has been cancelled
test-migrations / build (8.2) (push) Has been cancelled
test-migrations / build (8.3) (push) Has been cancelled
test-php / build (8.1) (push) Has been cancelled
test-php / build (8.2) (push) Has been cancelled
test-php / build (8.3) (push) Has been cancelled
Prevents polluting global scope with variables since we're using the module format bundler in esbuild. Also cleaned up unused yields. Fixed bad reference in our tinymce fixes. For #5232
This commit is contained in:
parent
e65655594f
commit
34ade50181
|
@ -144,11 +144,13 @@ export function handleTableCellRangeEvents(editor) {
|
|||
cell.removeAttribute('align');
|
||||
cleanChildAlignment(cell);
|
||||
},
|
||||
JustifyRight: this.JustifyLeft,
|
||||
JustifyCenter: this.JustifyLeft,
|
||||
JustifyFull: this.JustifyLeft,
|
||||
};
|
||||
|
||||
// Copy justify left action to other alignment actions
|
||||
actionByCommand.JustifyRight = actionByCommand.JustifyLeft;
|
||||
actionByCommand.JustifyCenter = actionByCommand.JustifyLeft;
|
||||
actionByCommand.JustifyFull = actionByCommand.JustifyLeft;
|
||||
|
||||
editor.on('ExecCommand', event => {
|
||||
const action = actionByCommand[event.command];
|
||||
if (action) {
|
||||
|
|
|
@ -36,11 +36,9 @@
|
|||
@endif
|
||||
|
||||
@if(userCan('comment-create-all') || $commentTree->canUpdateAny())
|
||||
@push('post-app-scripts')
|
||||
<script src="{{ versioned_asset('libs/tinymce/tinymce.min.js') }}" nonce="{{ $cspNonce }}"></script>
|
||||
@push('body-end')
|
||||
<script src="{{ versioned_asset('libs/tinymce/tinymce.min.js') }}" nonce="{{ $cspNonce }}" defer></script>
|
||||
@include('form.editor-translations')
|
||||
@endpush
|
||||
@push('post-app-html')
|
||||
@include('entities.selector-popup')
|
||||
@endpush
|
||||
@endif
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
<!-- OpenSearch -->
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="{{ setting('app-name') }}" href="{{ url('/opensearch.xml') }}">
|
||||
|
||||
@yield('head')
|
||||
|
||||
<!-- Custom Styles & Head Content -->
|
||||
@include('layouts.parts.custom-styles')
|
||||
@include('layouts.parts.custom-head')
|
||||
|
@ -70,14 +68,10 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
@yield('bottom')
|
||||
@stack('post-app-html')
|
||||
|
||||
@if($cspNonce ?? false)
|
||||
<script src="{{ versioned_asset('dist/app.js') }}" nonce="{{ $cspNonce }}"></script>
|
||||
<script src="{{ versioned_asset('dist/app.js') }}" type="module" nonce="{{ $cspNonce }}"></script>
|
||||
@endif
|
||||
@yield('scripts')
|
||||
@stack('post-app-scripts')
|
||||
@stack('body-end')
|
||||
|
||||
@include('layouts.parts.base-body-end')
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue
Block a user