Skip to content

Commit

Permalink
Merge pull request #22 from ibnnajjaar/master
Browse files Browse the repository at this point in the history
Apply extra attributes passed to the editorjs
  • Loading branch information
rahmanramsi authored Apr 15, 2023
2 parents 777f595 + 7716940 commit 1876a89
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions resources/views/forms/components/fields/editorjs.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
<div class="filament-editorjs">
<div
wire:ignore
class="editorjs-wrapper"
{{
$attributes
->merge($getExtraAttributes())
->class([
'editorjs-wrapper'
])
}}
x-data="editorjs({
state: $wire.entangle('{{ $getStatePath() }}').defer,
statePath: '{{ $getStatePath() }}',
Expand All @@ -25,4 +31,4 @@ class="editorjs-wrapper"
</div>
</div>

</x-forms::field-wrapper>
</x-forms::field-wrapper>

0 comments on commit 1876a89

Please sign in to comment.