Hi, I would like to have an input text box in a plugin I am making. In the text box I want to input css code. The problem is that when I have TinyMCE activated the css code get saved with tags such as <p> and <br>. I am using the following code right now,
echo "<br><br><p>[1] Input css code</p> ";
if(empty($vars['entity']->csscode)){
$vars['entity']->csscode = "";
}
echo elgg_view('input/longtext', array('name' => 'params[csscode]',
'value' => $vars['entity']->csscode,
'class' => 'easytheme', ) );
Can I use this same code bu disable the text formatting in the elgg_view function just for this text input box?
Thanks.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.