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
when click save it does not persist the images to db.. only if i dont use it as a block_editor.. perhaps medias inside a block is not yet supported?
i have also noticed that it didnt work initially if i didnt add $mediasParams to my model, the docs wasn't clear if that was a requirement.. perhaps this should be optional?
The text was updated successfully, but these errors were encountered:
As you correctly identified, $mediasParams is required as it is letting the model know about fields you'd like to save from your module's form. We could make it optional by providing a default configuration when a medias field name is not found in $mediasParams, thanks for your suggestion.
It works similarly in blocks, except the Block model is living in Twill's codebase which means it's mediasParams is controlled through your twill.php configuration file, under crops. You can take a look at the default block editor configuration here. I'll admit naming is not consistent here, and documentation is not as straightforward as it should be. So something to improve, definitely!
Hello i have the following:
when click save it does not persist the images to db.. only if i dont use it as a
block_editor
.. perhaps medias inside a block is not yet supported?i have also noticed that it didnt work initially if i didnt add
$mediasParams
to my model, the docs wasn't clear if that was a requirement.. perhaps this should be optional?The text was updated successfully, but these errors were encountered: