@extends('base')
@section('head')
- <script src="{{ baseUrl('/libs/tinymce/tinymce.min.js?ver=4.3.7') }}"></script>
+ <script src="{{ url('/libs/tinymce/tinymce.min.js?ver=4.9.4') }}"></script>
@stop
@section('body-class', 'flexbox')
<div class="flex-fill flex">
<form action="{{ $page->getUrl() }}" autocomplete="off" data-page-id="{{ $page->id }}" method="POST" class="flex flex-fill">
+ {{ csrf_field() }}
+
@if(!isset($isDraft))
<input type="hidden" name="_method" value="PUT">
@endif
- @include('pages/form', ['model' => $page])
- @include('pages/form-toolbox')
+ @include('pages.form', ['model' => $page])
+ @include('pages.editor-toolbox')
</form>
-
-
</div>
- @include('partials/image-manager', ['imageType' => 'gallery', 'uploaded_to' => $page->id])
- @include('partials/entity-selector-popup')
-
- <script>
- (function() {
-
- })();
- </script>
-
+ @include('components.image-manager', ['uploaded_to' => $page->id])
+ @include('components.code-editor')
+ @include('components.entity-selector-popup')
@stop
\ No newline at end of file