2015-07-13 04:31:15 +08:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('head')
|
|
|
|
<link rel="stylesheet" href="/plugins/css/froala_editor.min.css">
|
|
|
|
<link rel="stylesheet" href="/plugins/css/froala_style.min.css">
|
|
|
|
<script src="/plugins/js/froala_editor.min.js"></script>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<form action="{{$page->getUrl()}}" method="POST">
|
|
|
|
<input type="hidden" name="_method" value="PUT">
|
|
|
|
@include('pages/form', ['model' => $page])
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(function() {
|
2015-07-14 04:52:56 +08:00
|
|
|
$('#html').editable({
|
|
|
|
inlineMode: false,
|
|
|
|
imageUploadURL: '/upload/image',
|
|
|
|
imageUploadParams: {
|
|
|
|
'_token': '{{ csrf_token() }}'
|
|
|
|
}
|
|
|
|
});
|
2015-07-13 04:31:15 +08:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@stop
|