Skip to content

Commit

Permalink
Add custom label option to block editor field (from #228, thank you @…
Browse files Browse the repository at this point in the history
  • Loading branch information
ifox committed Jul 18, 2019
1 parent ff1add8 commit 7382c64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion views/partials/form/_block_editor.blade.php
@@ -1,7 +1,11 @@
@php
$label = $label ?? 'Add content'
@endphp

@unless ($withoutSeparator ?? false)
<hr/>
@endif
<a17-content title="Add content"></a17-content>
<a17-content title="{{ $label }}"></a17-content>

@php
$availableBlocks = isset($blocks) ? collect($blocks)->map(function ($block) {
Expand Down

0 comments on commit 7382c64

Please sign in to comment.