CKEditor on Advanced Module
I've created advanced modules before and applied the markitup editor fairly easier. Now, how do I get CKEditor to work on a custom advanced module? I could just download it and install it but I'm sure there's a Fuel way...
Comments
$field['textarea_example'] = array('type' => 'textarea', 'editor' => 'ckeditor');
$values = array(); // this would be the saved field values $this->load->library('form_builder'); $this->form_builder->load_custom_fields(APPPATH.'config/custom_fields.php'); $fields['my_ckeditor_field'] = array('type' => 'wysiwyg', 'editor' => 'ckeditor'); $this->form_builder->set_fields($fields); $this->form_builder->set_field_values($values); $this->form_builder->render();
More on the Form_builder class and its properties you can change here:
http://docs.getfuelcms.com/libraries/form_builder