Forum › General Inquiry
I want to add a snippet of Javascript to my posts that will display an Adsense ad.
When I do this using the HTML button, it puts <p> tags around it.
Hi,
You can try to override the TinyMCE config ( https://getpublii.com/dev/how-to-add-custom-config-or-js-for-post-editor/ ) like described here: https://stackoverflow.com/questions/17376595/how-can-i-remove-p-tags-that-are-auto-added-within-tinymce but I am not sure if it won’t break adding paragraphs to the normal text fragments.
-- Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!