Require the editor on an event handler

parent ee6ce770
...@@ -37,8 +37,6 @@ class PageController extends AdminBaseController ...@@ -37,8 +37,6 @@ class PageController extends AdminBaseController
*/ */
public function create() public function create()
{ {
$this->assetPipeline->requireJs('ckeditor.js');
return view('page::admin.create'); return view('page::admin.create');
} }
...@@ -64,8 +62,6 @@ class PageController extends AdminBaseController ...@@ -64,8 +62,6 @@ class PageController extends AdminBaseController
*/ */
public function edit(Page $page) public function edit(Page $page)
{ {
$this->assetPipeline->requireJs('ckeditor.js');
return view('page::admin.edit', compact('page')); return view('page::admin.edit', compact('page'));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment