Jump to content

Intégration/personnalisation deTinyMCE


Recommended Posts

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...