Adding ability to set a css partial view

parent 1e4117ce
...@@ -12,6 +12,7 @@ class EditorIsRendering ...@@ -12,6 +12,7 @@ class EditorIsRendering
private $assetPipeline; private $assetPipeline;
private $editorClass; private $editorClass;
private $editorJsPartial; private $editorJsPartial;
private $editorCssPartial;
public function __construct(AssetPipeline $assetPipeline) public function __construct(AssetPipeline $assetPipeline)
{ {
...@@ -63,4 +64,20 @@ class EditorIsRendering ...@@ -63,4 +64,20 @@ class EditorIsRendering
{ {
$this->editorJsPartial = $editorJsPartial; $this->editorJsPartial = $editorJsPartial;
} }
/**
* @return mixed
*/
public function getEditorCssPartial()
{
return $this->editorCssPartial;
}
/**
* @param mixed $editorCssPartial
*/
public function setEditorCssPartial($editorCssPartial)
{
$this->editorCssPartial = $editorCssPartial;
}
} }
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
</style> </style>
@stop @stop
@if ($editor->getEditorCssPartial() !== null)
@include($editor->getEditorCssPartial())
@endif
@section('content') @section('content')
{!! Form::open(['route' => ['admin.page.page.store'], 'method' => 'post']) !!} {!! Form::open(['route' => ['admin.page.page.store'], 'method' => 'post']) !!}
<div class="row"> <div class="row">
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
</style> </style>
@stop @stop
@if ($editor->getEditorCssPartial() !== null)
@include($editor->getEditorCssPartial())
@endif
@section('content') @section('content')
{!! Form::open(['route' => ['admin.page.page.update', $page->id], 'method' => 'put']) !!} {!! Form::open(['route' => ['admin.page.page.update', $page->id], 'method' => 'put']) !!}
<div class="row"> <div class="row">
......
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