Insert WYSIWYG Textarea

Submitted by remo - 2 years ago

When you create a custom single page interface or a block you might have come across some situations where you want to make it possible to enter formatted text. The snippet below shows you how you can insert a WYSIWYG field.

// call this once
$form = Loader::helper('form');

// for each textfield, use the code below
echo $form->textarea('text', $text, array('class' => 'ccm-advanced-editor'));
Stats Categories Tags
comments powered by Disqus