Page 1 of 1

MicroTiny adding empty <p> tags?

Posted: Wed Feb 11, 2015 9:09 pm
by rbaby
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 :(

Re: MicroTiny adding empty <p> tags?

Posted: Thu Feb 12, 2015 2:58 am
by hexdj
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:

Code: Select all

{content block="YouTube URL" oneline="true" assign="vid_url"}
{youtube url=$vid_url}
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

Re: MicroTiny adding empty <p> tags?

Posted: Sun Feb 15, 2015 6:22 pm
by Dr.CSS
I use tinyMCE...