Unrequested tags
Unrequested tags
CMSMS 5.2: Adding a tag like {gallery} in a content box makes CMSMS produce unrequested tags like <p>{gallery}</p>. This produces a unrequested line above the gallery-image. It is impossible to remove the <p>-Tag. The content box in the template looks like this: <div id="imagebox">{content block='imagebox'}</div>
Re: Unrequested tags
The paragraph tags are probably being automatically inserted by the wysiwyg editor.
If you're using TinyMCE rather than MicroTiny as your content editor then there's an option to disable 'Force paragraph on line break'.
If the only thing that's going in the imagebox div is the Gallery tag though then another option would just be to not show a wysiwyg tag on that block:
or even just have it as a single line.
If you're using TinyMCE rather than MicroTiny as your content editor then there's an option to disable 'Force paragraph on line break'.
If the only thing that's going in the imagebox div is the Gallery tag though then another option would just be to not show a wysiwyg tag on that block:
Code: Select all
<div id="imagebox">
{content block='imagebox' wysiwyg=0}
</div>
Code: Select all
<div id="imagebox">
{content block='imagebox' oneline=1}
</div>
Re: Unrequested tags
Thanks, scooper, for your reply and propositions.
Yes, I do use TinyMCE. And I do have further content (text) to be placed in the block «imagebox» (e.g. image caption).
I tried out both of your propositions, but they do not produce any result in fe.
Yes, I do use TinyMCE. And I do have further content (text) to be placed in the block «imagebox» (e.g. image caption).
I tried out both of your propositions, but they do not produce any result in fe.
Re: Unrequested tags
I disabled this option in TinyMCE: The problem is solved.If you're using TinyMCE rather than MicroTiny as your content editor then there's an option to disable 'Force paragraph on line break'.
Thanks again, scooper