kurzic Posted June 1, 2016 Share Posted June 1, 2016 Hi all, i'm a newbie in Prestashop, and i'm using the HelperForm. I want to add a rich text editor to my textarea. I searched on google and found that (in fr). But when i add autoload_rte on my field i have that : http://www.noelshack.com/2016-22-1464766939-capture-du-2016-06-01-09-41-01.png So all my fields are in tinyMCE and i want just my last field... Behind my code : private function createNewAdminForm() { $this->fields_form[] = array( 'form' => array( 'legend' => array('title' => $this->l('ax_banniere')), 'input' => array( array( 'type' => 'text', 'name' => 'title', 'label' => 'Titre', 'required' => true ), array( 'type' => 'text', 'name' => 'date_debut_publication', 'label' => 'Date de début de publication', 'required' => true ), array( 'type' => 'text', 'name' => 'date_fin_publication', 'label' => 'Date de fin de publication', 'required' => true ), array( 'type' => 'textarea', 'name' => 'content', 'label' => 'Contenu', 'rows' => 5, 'cols' => 20, 'lang' => false, 'required' => true, 'autoload_rte' => true, 'hint' => 'Invalid characters: <>;=#{}' ), ), 'submit' => array( 'title' => 'sauvegarder', // This is the button that saves the whole fieldset. 'class' => 'button', 'name' => 'submitax_banniere' ) ) ); $helper = new HelperForm(); $helper->module = $this; $helper->name_controller = $this->name; $helper->token = Tools::getAdminTokenLite('AdminModules'); $helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name; $helper->identifier = $this->identifier; $helper->title = 'Ax_banniere_custom'; $helper->show_toolbar = false; $helper->toolbar_btn = $this->_initToolbar(true); $helper->submit_action = 'submitax_banniere'; $c = new Customban(); $helper -> fields_value = array('title' => '', 'date_debut_publication' => '', 'date_fin_publication' => '', 'content'=> ''); return $helper->generateForm($this->fields_form); Note : i'm using Prestashop 1.5, if someone have got any answer it can be great. And sorry for my bad english Thanks 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now