Hello, whenever I add a UDT like {youtube url=""} in a content block, TinyMCE adds <p> tags around it. Is there a way I can get it to stop adding <p> tags without my exclusively putting it?
This happens when I also place an <__iframe> embed of some sort...it will load it in a <p></p> tag and then the front-end doesn't actually encompass the iframe, it just shows up as <p></p><__iframe...> adding extra space for no reason.
I found some articles online on how to address it for TinyMCE but I can't seem to find the config files they're referencing
MicroTiny adding empty <p> tags?
Re: MicroTiny adding empty <p> tags?
Yeah this is an issue when you try to use the WYSIWYG and parse Smarty code that's within it.
You could add a one-line content block instead (exclusive for pages that display youtube videos maybe), this CB could take the url for your video, then in your template basically you'd have something like this:
Another option is using this plugin, that I just added to the forge (although I didn't write it), if you're familiar with Markdown:
http://dev.cmsmadesimple.org/projects/markdown
You could add a one-line content block instead (exclusive for pages that display youtube videos maybe), this CB could take the url for your video, then in your template basically you'd have something like this:
Code: Select all
{content block="YouTube URL" oneline="true" assign="vid_url"}
{youtube url=$vid_url}
http://dev.cmsmadesimple.org/projects/markdown
Re: MicroTiny adding empty <p> tags?
I use tinyMCE...