Tabs automatically placed in

paragraphs

Search
Other Bug Reports questions
Forum

Tabs automatically placed in <p></p> paragraphs

Thom's Avatar Thom
Entering the {tab=xx} code, even in code view, the editor automatically put it into a paragraph, and this seems to stop the tabs from appearing correctly on the preview or live pages.

Is this normal, is there something I can do to suppress this auto-'correct'?

Thanks
Peter van Westen's Avatar Peter van Westen ADMIN
Tabs should deal with the surrounding <p> tags. I actually advise to put the {tab} tags - and the ending {/tab} tag - on their own paragraph lines.

And instead of this:
<p>
  {tab title="First Tab"}<br>
  Some text...<br>
  {tab title="Second Tab"}<br>
  Some more text...<br>
  {/tabs}
</p>
Do this:
<p>{tab title="First Tab"}</p>
<p>Some text...</p>
<p>{tab title="Second Tab"}</p>
<p>Some more text...</p>
<p>{/tabs}</p>
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in