Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use attachments with Trix fields #59

Open
onlinelaser opened this issue Sep 23, 2020 · 1 comment
Open

Ability to use attachments with Trix fields #59

onlinelaser opened this issue Sep 23, 2020 · 1 comment

Comments

@onlinelaser
Copy link

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.

@koop-bremen
Copy link

I have the same problem. Does anyone already have a quick fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants