For my News module I created several custom fields. One of them is a Text area for inserting the embed code of YouTube movies. This text area is (at the edit page) displayed in WYSIWIG mode (I use TinyMCE). Before inserting the embed code the WYSIWYG mode must be switched off. With several colleagues working on the site this is not always done.
I'm looking for a way to switch off WYSIWIG mode for this custom field by default, without switching it off for other text areas, something like:
Code: Select all
(...)
<p class="pageinput">
{if field is video field}
switch off WYSIWYG
{$field->field}
{else}
{$field->field}
</p>
(...)
Can this be done? How?
Frank