Open dprhmk opened 5 months ago
You can work around it by using resolveUsing
and fillUsing
.
TinymceEditor::make('Text', 'text')
->resolveUsing(function ($value, $model) {
return $model->data['text'] ?? '';
})->fillUsing(function ($request, $model, $attribute, $requestAttribute) {
$data = $model->data;
$content[$attribute] = $request->input($attribute);
$model->data = $data;
})
My code is :