FEATURE: make CKEditor look nicer
This commit is contained in:
@@ -23,14 +23,13 @@ RedirectMatch 403 /phpunit.xml
|
|||||||
|
|
||||||
# disable browsing directories
|
# disable browsing directories
|
||||||
# this should be solved also with Option -Indexes, however...
|
# this should be solved also with Option -Indexes, however...
|
||||||
RedirectMatch 403 /app
|
RedirectMatch 403 ^/app
|
||||||
RedirectMatch 403 /artisan
|
RedirectMatch 403 ^/artisan
|
||||||
RedirectMatch 403 /bootstrap
|
RedirectMatch 403 ^/bootstrap
|
||||||
RedirectMatch 403 /config
|
RedirectMatch 403 ^/config
|
||||||
RedirectMatch 403 /database
|
RedirectMatch 403 ^/database
|
||||||
RedirectMatch 403 /modules
|
RedirectMatch 403 ^/modules
|
||||||
RedirectMatch 403 /resources
|
RedirectMatch 403 ^/scripts
|
||||||
RedirectMatch 403 /scripts
|
RedirectMatch 403 ^/storage
|
||||||
RedirectMatch 403 /storage
|
RedirectMatch 403 ^/tests
|
||||||
RedirectMatch 403 /tests
|
RedirectMatch 403 ^/vendor
|
||||||
RedirectMatch 403 /vendor
|
|
||||||
|
|||||||
@@ -29,9 +29,5 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
@section('javascripts')
|
@section('javascripts')
|
||||||
<script src="{{asset('/resources/assets/js/vendor/ckeditor/ckeditor.js')}}"></script>
|
@include('admin.snippets.ckEditor', ['textareaId' => 'pageContent'])
|
||||||
|
|
||||||
<script type="application/javascript">
|
|
||||||
CKEDITOR.replace ('pageContent');
|
|
||||||
</script>
|
|
||||||
@stop
|
@stop
|
||||||
@@ -23,9 +23,5 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
@section('javascripts')
|
@section('javascripts')
|
||||||
<script src="{{asset('/resources/assets/js/vendor/ckeditor/ckeditor.js')}}"></script>
|
@include('admin.snippets.ckEditor', ['textareaId' => 'pageContent'])
|
||||||
|
|
||||||
<script type="application/javascript">
|
|
||||||
CKEDITOR.replace ('pageContent');
|
|
||||||
</script>
|
|
||||||
@stop
|
@stop
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<script src="{{asset('/resources/assets/js/vendor/ckeditor/ckeditor.js')}}"></script>
|
||||||
|
|
||||||
|
<script type="application/javascript">
|
||||||
|
CKEDITOR.replace ('{{$textareaId}}', {
|
||||||
|
uiColor: "#F5F5F5",
|
||||||
|
forcePasteAsPlainText: true,
|
||||||
|
entities: false,
|
||||||
|
basicEntities: false,
|
||||||
|
entities_greek: false,
|
||||||
|
entities_latin: false,
|
||||||
|
removePlugins: 'elementspath,about,scayt',
|
||||||
|
extraPlugins: 'justify',
|
||||||
|
toolbarGroups: [
|
||||||
|
{name: 'undo', groups: ['undo']},
|
||||||
|
{name: 'styles'},
|
||||||
|
{name: 'basicstyles', groups: ['basicstyles', 'cleanup']},
|
||||||
|
{name: 'paragraph', groups: ['list', 'indent', 'align', 'blocks']},
|
||||||
|
{name: 'links'},
|
||||||
|
{name: 'editing', groups: ['find', 'selection']},
|
||||||
|
{name: 'insert'},
|
||||||
|
{name: 'forms'},
|
||||||
|
{name: 'document', groups: ['mode', 'document', 'doctools']},
|
||||||
|
{name: 'tools'}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user