Hello,
I try to use Ghost Admin API (https://ghost.org/docs/api/v3/javascript/admin/) to post articles. Everything works perfect.
However, it seems I can not add a button from the code if I add the html code with “button” element.
When I pass in html: my_html_content
(I use {source: ‘html’})
If my_html_content html code contains “button” element, I see it automatically changed it to “a” element which makes me cannot create a button from the code.
Apart from that because I want when user click it the button should open a new window, I added target=“_blank”, however it is also removed by Ghost when it converted to the mobiledoc I think?
How can I keep those attributes?
Is there any way I can create a button by using the Javascript SDK?
Thanks in advance.