<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all. I have defined a profile into "tinymce settings" called
"newsimple". I want link it with some textarea. <br>
<br>
I know that there is some type of "hook" <code>phptemplate<span
style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 187);">_tinymce_theme()</span></span></code>:<br>
<br>
function phptemplate_tinymce_theme($init, $textarea_name, $theme_name,
$is_running) {<br>
dpm("Textarea: $textarea_name");<br>
switch ($textarea_name) {<br>
case 'comment':<br>
case 'message':<br>
case 'log':<br>
//Segnalazione problema manuale<br>
case 'submitted-segnalazione-testo':<br>
case 'access-page':<br>
unset($init);<br>
break;<br>
default: break;<br>
}<br>
<br>
//Descrizione manuale.<br>
if (arg(0) == 'node' && arg(1) == 'add' &&
(arg(2) == 'manuali-file' || arg(2) == 'manuali-link') &&
$textarea_name == 'body') {<br>
//unset($init);<br>
$init['theme'] = 'newsimple';<br>
foreach ($init as $k => $v) {<br>
if (strstr($k, 'theme_advanced_'))
unset($init[$k]);<br>
}<br>
}<br>
dpr($init);<br>
return $init;<br>
}<br>
<br>
This code come from Drupal,org, but does not works: it's like that the
'newsimple' theme is not found from this function so no tinymce is
displayed. Where is my error ? <br>
<pre class="moz-signature" cols="72">Tnx M.
--
Michel 'ZioBudda' Morelli <a class="moz-txt-link-abbreviated" href="mailto:michel@ziobudda.net">michel@ziobudda.net</a>
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
<a class="moz-txt-link-freetext" href="http://www.ziobudda.net">http://www.ziobudda.net</a> ICQ: 58351764
<a class="moz-txt-link-freetext" href="http://www.ziobuddalabs.it">http://www.ziobuddalabs.it</a> Skype: zio_budda
<a class="moz-txt-link-freetext" href="http://www.ajaxblog.it">http://www.ajaxblog.it</a>                         MSN: <a class="moz-txt-link-abbreviated" href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>
                                                JABBER: <a class="moz-txt-link-abbreviated" href="mailto:michel@gmail.com">michel@gmail.com</a>
</pre>
</body>
</html>