How to disable WYSIWYG for texarea boxes for News Module

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

How to disable WYSIWYG for texarea boxes for News Module

Post by blackhawk »

When I create a field definition for a textarea, is there a way to always disable the WYSIWYG editor, and instead be in HTML mode just for that box on article pages?

Thanks for any advice
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: How to disable WYSIWYG for texarea boxes for News Module

Post by psy »

Haven't checked but in your output template you could use the strip_tags modifier to remove the HTML.

{$myvar|strip_tags}
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

Re: How to disable WYSIWYG for texarea boxes for News Module

Post by blackhawk »

Thank you psy,
I meant more from an admin perspective...if the custom textarea field can be an HTML window by default, rather than a rich text editor window.

So yes, I want HTML in the textarea, but not all the extra elements that the rich text editor produces on the fly.
Post Reply

Return to “The Lounge”