You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an accessor and it works fine when i viewing the record, but the accessor is not called when i´m editing the record.
I have tried to a formatStatusUsing on the RichEditor field, but it´s not working: ->formatStateUsing(function ($state, $record) { return dd($record->description); })
If i dd the record the value is correct, but its not inserted to the richeditor. If i for example are just returning 'test', instead of the HTML, it works fine.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an accessor and it works fine when i viewing the record, but the accessor is not called when i´m editing the record.
I have tried to a formatStatusUsing on the RichEditor field, but it´s not working:
->formatStateUsing(function ($state, $record) { return dd($record->description); })
If i dd the record the value is correct, but its not inserted to the richeditor. If i for example are just returning 'test', instead of the HTML, it works fine.
Any direction to get this working?
My accessor:
Beta Was this translation helpful? Give feedback.
All reactions