Im using Reusable Custom WordPress Meta Boxes in order to add custom meta boxes to my theme.
One of the requirements is that i have WYSIWYG Editor in metabox.
Part of the code to get that thing is:
array(
'label' => __('Availability content'),
'desc' => __('Some desc'),
'id' => 'availability_text',
'type' => 'editor'
),
Now when I save post, information in metabox is saved but its not formatted and images that were in editor are lost.
Why that could happen and how to solve it?
I noticed that it removes formatting, strips out p <br> h1 tags etc