I have created a plugin and works great but because the plugin uses shortcode I have created and custom button and form in the visual editor...
// the button...
// the form, will be displayed when the user will click the custom button
So, my question is, how to get the entered values from the form and how to put in the visual editor ?
In the form I have
<input name="url" ... />
<input name="width" ... />
<input name="height" ... />
and I want to put in the editor in this format:
[my_shortcode url="..." width="..." height="..."]
I need some like 'Insert into post' custom button...