source avant adaptation: http://bakery.cakephp.org/articles/view/using-tinymce-with-cakephp-and-ajax
a priori pas une bonne solution, préférer FCKeditor
http://tinymce.moxiecode.com/download.php et langue http://tinymce.moxiecode.com/download_i18n.php
Décompresser sous /home/xxx/soft/js/tinymce, y extraire le paquet de langue
copier /home/xxx/soft/js/tinymce/tinymce_3_2_2/jscripts/tiny_mce sous /home/xxx/cake/app/webroot/js
cake/app/views/layouts/layout.ctp
<head>
<title>blabla</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php
echo $javascript->link('prototype.js');
echo $javascript->link('tiny_mce/tiny_mce');
echo $javascript->link('scriptaculous.js?load=effects');
?>
la suite est incomplète… todo éventuellement
cake/app/app_controller.php
ajouter entre les balises class:
// controller file
var $helpers = array('Html', 'Javascript', 'Ajax');
function view() {
$this->render('layout file', 'ajax');
}
ici j'ai pris /home/radeff/cake/app/views/remarques/edit.ctp pour avoir ajax sur une page d'édition de ma db