how do you load tiny_mce.js file?
do you use JavascriptHelper like that?
echo $javascript->link('tiny_mce');

I saw several questions from you these days, and many can be answered
by the use of core helpers
You should know that CakePHP manipulates URL (to make them pretty),
and that change the way to load files/images/css/...

On 22 mai, 13:52, vishal <[EMAIL PROTECTED]> wrote:
> Hi Friend,
>             I am facing a very difficult problem, if you have any
> suggestion for me then plz guide me what i will do ??
> actually I have placed a tiny MCE editor to add the page content for
> my cms. these pages shown
> on front end & handled by admin. ther are 5 -6 pages so I have stored
> it in the database.
>
> when i edit the page with Id the TinyMCE editor is not shown, while in
> case of add it works fine.
>
> when i click on edit link this link shown in 
> URL:http://192.168.0.60/vishal/cake_1.2.0.6311-beta/app/cmts/edit/6
>
> & the contents are shown in form of textarea not in the editor....
>
> The main problem is the id...but it is mandatory for me.
>  while in case of this 
> URL,http://192.168.0.60/vishal/cake_1.2.0.6311-beta/app/cmts/edit
>
> it shows me the editor but not the content , what i will do ????
>
> the code is below for edit :
> <script type="text/javascript">
>     tinyMCE.init({
>         theme : "advanced",
>         mode : "textareas",
>
>         plugins :
> "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
>
>                 // Theme options
>                 theme_advanced_buttons1 :
> "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
>                 theme_advanced_buttons2 :
> "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
>                 theme_advanced_buttons3 :
> "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
>                 theme_advanced_buttons4 :
> "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
>                 theme_advanced_toolbar_location : "top",
>                 theme_advanced_toolbar_align : "left",
>                 theme_advanced_statusbar_location : "bottom",
>                 theme_advanced_resizing : true,
>         convert_urls : true
>     });
> </script>
>
> <h1>Edit Page</h1>
>
> <?php
>  echo $form->create('Cmt', array('action' =>'edit'));
>
>  ?>
>
>  <table width="90%" cellpadding="0" cellspacing="0"  align="center"
> border="0">
>
> <tr>
> <td width='8%' valign='top'>
> <label>PageName:</label></td><td align='left'><? echo 
> $form->input('name',array('label'=>'')); ?>
>
> </td>
> </tr>
>
> <tr>
> <td valign='top'>
> <label>Title:</label></td><td ><? echo 
> $form->input('title',array('label'=>'')); ?>
>
> </td>
> </tr>
>
> <tr>
> <td valign='top'>
> <label> Content:</label></td>
> <td ><? echo $form->input('content', array('rows' =>
> '15','cols'=>'35','label'=>'')); ?>
> </td>
> </tr>
>
> <tr>
> <td valign='top'><label> Date:</label></td><td style='padding-left:
> 15px;'><? echo $form->dateTime('dateadded',
>                 $dateFormat = 'DMY',
>                 $selected = null,
>                 $attributes = array(),
>                 $showEmpty = true
>         ) ; ?>
> </td>
> </tr>
>
> <tr>
> </table>
> <?
>
> echo $form->end('Save Page');
> ?>
>
> :
>
> I am waiting for anybody replies....
>
> thanks
> vishal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to