MicroTiny adding empty <p> tags?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

MicroTiny adding empty <p> tags?

Post 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 :(
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: MicroTiny adding empty <p> tags?

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: MicroTiny adding empty <p> tags?

Post by Dr.CSS »

I use tinyMCE...
Post Reply

Return to “Modules/Add-Ons”