I'm trying to find a solution for shortcodes with HTML content, not only a YouTube Video or a map.
I know the tutorial on ssbits: http://www.ssbits.com/tutorials/2010/2-4-using-short-codes-to-embed-a-youtube-video/
where a shortcode looks like this:
[YouTube id=3UTu6lV8ppY]A video about SilverStripe[/YouTube]
What I want to do is to give the user the possibility to make a 3 column layout in the editor.
My Shortcodes look like this in the backend editor:
[Column class=one_third] Title bla text mext bla text mext [/Column]
An the finished HTML Code is:
<p><div class="one_third"> </p> <h1>Headline</h1> <p>text mext text mext</p> <p> </div></p>
As you can see, there are some <p> tags generated we dont need, that breaks styling of page.
anybody had the same issue or know how to avoid this?