From c99cee7a275ac6c1e5319d7d50831973b5eb66b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Fri, 8 Apr 2016 01:08:04 +0200 Subject: [PATCH] FEATURE: make CKEditor look nicer --- .htaccess | 21 +++++++-------- .../views/admin/content/editForm.blade.php | 6 +---- .../views/admin/content/newForm.blade.php | 6 +---- .../views/admin/snippets/ckEditor.blade.php | 26 +++++++++++++++++++ 4 files changed, 38 insertions(+), 21 deletions(-) create mode 100644 resources/views/admin/snippets/ckEditor.blade.php diff --git a/.htaccess b/.htaccess index 9cf66136..c4032b02 100644 --- a/.htaccess +++ b/.htaccess @@ -23,14 +23,13 @@ RedirectMatch 403 /phpunit.xml # disable browsing directories # this should be solved also with Option -Indexes, however... -RedirectMatch 403 /app -RedirectMatch 403 /artisan -RedirectMatch 403 /bootstrap -RedirectMatch 403 /config -RedirectMatch 403 /database -RedirectMatch 403 /modules -RedirectMatch 403 /resources -RedirectMatch 403 /scripts -RedirectMatch 403 /storage -RedirectMatch 403 /tests -RedirectMatch 403 /vendor +RedirectMatch 403 ^/app +RedirectMatch 403 ^/artisan +RedirectMatch 403 ^/bootstrap +RedirectMatch 403 ^/config +RedirectMatch 403 ^/database +RedirectMatch 403 ^/modules +RedirectMatch 403 ^/scripts +RedirectMatch 403 ^/storage +RedirectMatch 403 ^/tests +RedirectMatch 403 ^/vendor diff --git a/resources/views/admin/content/editForm.blade.php b/resources/views/admin/content/editForm.blade.php index 643b8a1f..0f47f341 100644 --- a/resources/views/admin/content/editForm.blade.php +++ b/resources/views/admin/content/editForm.blade.php @@ -29,9 +29,5 @@ @section('javascripts') - - - + @include('admin.snippets.ckEditor', ['textareaId' => 'pageContent']) @stop \ No newline at end of file diff --git a/resources/views/admin/content/newForm.blade.php b/resources/views/admin/content/newForm.blade.php index 0d5485c2..508135fa 100644 --- a/resources/views/admin/content/newForm.blade.php +++ b/resources/views/admin/content/newForm.blade.php @@ -23,9 +23,5 @@ @section('javascripts') - - - + @include('admin.snippets.ckEditor', ['textareaId' => 'pageContent']) @stop \ No newline at end of file diff --git a/resources/views/admin/snippets/ckEditor.blade.php b/resources/views/admin/snippets/ckEditor.blade.php new file mode 100644 index 00000000..0d16a3ff --- /dev/null +++ b/resources/views/admin/snippets/ckEditor.blade.php @@ -0,0 +1,26 @@ + + + \ No newline at end of file