Page 1 of 1
How to disable WYSIWYG for texarea boxes for News Module
Posted: Sat Oct 04, 2014 6:22 pm
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
Re: How to disable WYSIWYG for texarea boxes for News Module
Posted: Wed Oct 08, 2014 9:38 pm
by psy
Haven't checked but in your output template you could use the strip_tags modifier to remove the HTML.
{$myvar|strip_tags}
Re: How to disable WYSIWYG for texarea boxes for News Module
Posted: Fri Oct 10, 2014 2:04 am
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.