I have created a meta field in the new post page. When I add some content in the meta field, I store it in a hidden textarea.
When a post is saved, I want to clear all content of the editor and copy the data of that meta field textarea to the editor.
The data can be copied with jQuery, however I'm unable to figure out that how I send it to the editor just before saving the post?
The idea is build a visual shortcode, and the data being sent to the editor will be shortcode.
I will really appreciate any help in this regard.