Adding ability to set a css partial view

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