File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,5 +28,5 @@ CKEditor::make('Label')
28
28
## Attachments
29
29
30
30
``` php
31
- CKEditor::make('Label')->attachmentRoute (route('your-attachment-route'))
31
+ CKEditor::make('Label')->attachmentEndpoint (route('your-attachment-route'))
32
32
```
Original file line number Diff line number Diff line change 1
1
<x-moonshine::form .textarea
2
2
::id =" $id('ckeditor')"
3
- x-data =" ckeditor(`{{ $attachmentRoute } } `)"
3
+ x-data =" ckeditor(`{{ $attachmentEndpoint } } `)"
4
4
:attributes =" $attributes"
5
5
>{!! $value ?? ' ' ! !} </x-moonshine::form .textarea >
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ final class CKEditor extends Textarea
12
12
{
13
13
protected string $ view = 'moonshine-ckeditor::fields.ckeditor ' ;
14
14
15
- protected string $ attachmentRoute = '' ;
15
+ protected string $ attachmentEndpoint = '' ;
16
16
17
17
public function getAssets (): array
18
18
{
@@ -23,17 +23,17 @@ public function getAssets(): array
23
23
];
24
24
}
25
25
26
- public function attachmentRoute (string $ route ): self
26
+ public function attachmentEndpoint (string $ value ): self
27
27
{
28
- $ this ->attachmentRoute = $ route ;
28
+ $ this ->attachmentEndpoint = $ value ;
29
29
30
30
return $ this ;
31
31
}
32
32
33
33
protected function viewData (): array
34
34
{
35
35
return [
36
- 'attachmentRoute ' => $ this ->attachmentRoute
36
+ 'attachmentEndpoint ' => $ this ->attachmentEndpoint
37
37
];
38
38
}
39
39
}
You can’t perform that action at this time.
0 commit comments