Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
bd8ebbd8
Unverified
Commit
bd8ebbd8
authored
Jul 12, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding ability to set a css partial view
parent
1e4117ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
EditorIsRendering.php
Modules/Core/Events/EditorIsRendering.php
+17
-0
create.blade.php
Modules/Page/Resources/views/admin/create.blade.php
+4
-0
edit.blade.php
Modules/Page/Resources/views/admin/edit.blade.php
+4
-0
No files found.
Modules/Core/Events/EditorIsRendering.php
View file @
bd8ebbd8
...
@@ -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
;
}
}
}
Modules/Page/Resources/views/admin/create.blade.php
View file @
bd8ebbd8
...
@@ -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
">
...
...
Modules/Page/Resources/views/admin/edit.blade.php
View file @
bd8ebbd8
...
@@ -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
">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment