public function ckeditor($fieldName, array $options = [])
    {
        $options = optionsParser($options, ['label' => false, 'type' => 'textarea'])
            ->append('templates', [
                'textarea' => '<textarea name="{{name}}" class="form-control wysiwyg editor"{{attrs}}>{{value}}</textarea>',
            ]);

        return $this->control($fieldName, $options->toArray());
    }
public function ckeditor($fieldName, array $options = [])
    {
        $options = optionsParser($options, ['label' => false, 'type' => 'textarea'])
            ->append('templates', [
                'textarea' => '<textarea name="{{name}}" class="form-control wysiwyg editor"{{attrs}}>{{value}}</textarea>',
            ]);

        return $this->control($fieldName, $options->toArray());
    }
public function ckeditor ( $ fieldName , array $ options = [ ] ) { $ options = optionsParser ( $ options , [ 'label' => false , 'type' => 'textarea' ] ) -> append ( 'templates' , [ 'textarea' => '<textarea name="{{name}}" class="form-control wysiwyg editor"{{attrs}}>{{value}}</textarea>' , ] ) ; return $ this -> control ( $ fieldName , $ options -> toArray ( ) ) ; }
Creates a CKEditor textarea.

To add the scripts for CKEditor, you should use the `LibraryHelper`.
@param string $fieldName Field name, should be "Modelname.fieldname"
@param array $options HTML attributes and options
@return string
@see MeTools\View\Helper\LibraryHelper::ckeditor()
@uses control()
Creates a CKEditor textarea .