Added the ability to upload pictures in the editor.
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
@csrf
|
||||
<x-volt.forms.input :title="__('validation.attributes.title')" name="title" type="text" :value="$content->title" required autofocus />
|
||||
<x-volt.forms.textarea-wysiwyg :title="__('validation.attributes.description')" name="description" :value="$content->description" />
|
||||
<x-volt.forms.textarea-wysiwyg
|
||||
:title="__('validation.attributes.description')"
|
||||
name="description"
|
||||
:value="$content->description"
|
||||
:storageUpload="new \App\Dto\View\Volt\Form\WysiwygStorageUpload(inputName: 'storage', morph: \App\Enums\Morph::ProjectContent)"
|
||||
/>
|
||||
|
||||
@canany(['create', 'update'], $content)
|
||||
<button class="btn btn-primary" type="submit">{{ __('Save') }}</button>
|
||||
|
Reference in New Issue
Block a user