Require the editor on an event handler

parent ee6ce770
......@@ -37,8 +37,6 @@ class PageController extends AdminBaseController
*/
public function create()
{
$this->assetPipeline->requireJs('ckeditor.js');
return view('page::admin.create');
}
......@@ -64,8 +62,6 @@ class PageController extends AdminBaseController
*/
public function edit(Page $page)
{
$this->assetPipeline->requireJs('ckeditor.js');
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