Gring Posted October 23, 2012 Share Posted October 23, 2012 Bonjour à tous, J'ai créé un module (PS 1.5) contenant une nouvelle classe dans laquelle plusieurs champs sont édités via tinyMCE. Je n'ai pas eu de difficultés à intégrer tinyMCE mais je ne parviens pas à le personnaliser : je souhaiterai avoir certains boutons comme le "format" afin de mettre les balises h1,h2,h3... ou pouvoir modifier la taille de la police (alors qu'actuellement il ne comporte que quelques boutons). Voici comment j'ai intégré tinyMCE sur mon champ "content", via mon "admin controller" : class AdminMyModuleController extends ModuleAdminController { .... public function renderForm() { $this->fields_form = array( 'tinymce' => true, 'legend' => array( 'title' => $this->l('Content'), 'image' => '../img/admin/subdomain.gif' ), array( 'type' => 'textarea', 'label' => $this->l('Content block'), 'name' => 'content', 'autoload_rte' => true, 'lang' => true, 'rows' => 12, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), ..... } .... } Quelqu'un sait-il comment l’intégrer de manière complète ? Merci par avance si quelqu'un arrive à me filer un coup de pouce Link to comment Share on other sites More sharing options...
Gring Posted November 6, 2012 Author Share Posted November 6, 2012 En fait je viens de trouver que le TinyMCE était initialisé dans le fichier admin/themes/default/template/helpers/form/form.tpl Est-t-il possible de le surcharger dans le répertoire override ? 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