Skip to content

Ability to use attachments with Trix fields #59

@onlinelaser

Description

@onlinelaser

Ideally regions and pages should support the standard Trix field attachments (https://nova.laravel.com/docs/1.0/resources/fields.html#file-uploads)

These can also be used by other WYSIWYG components as well (eg https://novapackages.com/packages/froala/nova-froala-field)

Trix::make('description')
  ->withFiles('public'),

Currently this seems to fail, triggering an abort in Laravel\Nova\Http\Controllers\TrixAttachmentController I think it's because the Trix field components don't expect the underlying database field to be cast to json rather than holding text and so the attribute that holds the image can't be located.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions