If you set the TiptapEditor config to save the output as JSON, you'll encounter a "Array to string conversion" error when trying to save a post.
The reason for this is that you need to cast the 'body' value to array if you want to use JSON output.
However, we can not change the cast values on runtime (tested it, does not work), so I think we need to be able to define our own post Model just like the user model.
If you set the TiptapEditor config to save the output as JSON, you'll encounter a "Array to string conversion" error when trying to save a post.
The reason for this is that you need to cast the 'body' value to array if you want to use JSON output.
However, we can not change the cast values on runtime (tested it, does not work), so I think we need to be able to define our own post Model just like the user model.
Is there any other solution?