WYSIWYG/TinyMCE – How to Prevent Inserting

Tags

tinymcewysiwyg

For the homepage of a magento shop I use the following code in the plain text editor:

<p>Some text...</p>
{{block type="catalog/product_list" name="home.catalog.product.list"
    alias="products_homepage" template="catalog/product/list.phtml"}}

When I save this, magento switches to the WYSIWYG editor. When I change back to the plain editor, I see that magento has inserted some code:

<p>Some text...</p>
<p>{{block type="catalog/product_list" name="home.catalog.product.list"
    alias="products_homepage" template="catalog/product/list.phtml"}}</p>

How can I prevent this <p> tag to be inserted. Do I need to remove this editor, or can I use another one?

Best Answer

I usually find disabling it all together is the best way to go. If that's an option you can find the settings here:

System > Configuration > Content Management > WYSIWYG Options
Related Topic