I am using EE 1.6.7 and have the LG TinyMCE (v.1.3.3) extension installed as my client will need WYSIWYG editing panels for some content.
I don’t think the issue I am having relates to the Tiny Mce extension.
I have a custom field for a news article body set to the Wysiwyg field that the extension gives me.
I ensure that the entry content for the news article contains paragraph tags (by going to html view in the wysiwyg panel).
I have checked in the database, and the paragraph tags show up there correctly i.e. what is saved in the database for the field matches the html view in the wysiwyg panel exactly.
The content formatting field in the database table (field_ft_2 in my case) is set to none, which I think is what I want. The docs state that none means that text will not be formatted in any way which is useful for allowing HTML content, which is what the wysiwyg field does.
If I return and edit the entry again in the CP, the paragraphs are still there in wysiwyg and html view of the wysiwyg panel.
However, when I include the field in a template e.g. {news_body}, and view the resulting web page, the paragraph tags are nowhere to be seen.
Other minor HTML changes I have made to test this are preserved e.g. I can bold or italicise text and that shows up correctly. Links are also preserved.
However, the main thing I need is paragraphs, and all I get in my web page is one big lump of text without a single paragraph tag in it, even though they are in the database.
Here is an example of the true HTML (correct in wysiwyg panel and database):
<p>The website is being developed to cover all aspects of the sport, from grassroots to international as well as being a source of news for the sports community. Devoting space to all aspects of sport, it is the place to go for the latest news, from underage competition, right through to senior international results. The site, developed by <a href="http://www.test.com/" target="_blank">Test</a>, also devotes space to a player blog featuring the game's top <em>young</em> talents. We hope you enjoy exploring the site as it develops.</p>
<p>Testing, <strong>testing</strong>.</p>
Here is the template code I am using:
{exp:weblog:entries weblog="news" status="not closed" limit="1" disable="member_data|trackbacks|categories|pagination"}
<h2>{title}</h2>
<p class="date">{entry_date format="%d %F %Y"}</p>
{news_body}
{/exp:weblog:entries}
And here is an example of the incorrect HTML rendering I’m getting in the template:
The website is being developed to cover all aspects of the sport, from grassroots to international as well as being a source of news for the sports community. Devoting space to all aspects of sport, it is the place to go for the latest news, from underage competition, right through to senior international results. The site, developed by <a href="http://www.test.com/" target="_blank">Test</a>, also devotes space to a player blog featuring the game's top <em>young</em> talents. We hope you enjoy exploring the site as it develops.
Testing, <strong>testing</strong>.
I’m hoping that this is just some setting or parameter I’m missing, but I can’t work it out. I’d really appreciate some help on this, as the site is due to go live shortly.
Thanks,
Janine.
