Wow, can't believe I forgot to check that.
But yes I am, tinyMCE is not defined in my coded included up above in /
views/news/edit.ctp
As well
syntax error in the tiny_mce.js code here apparently
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
On Jul 21, 2:07 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> are you getting any javascript errors at all?
>
> 2008/7/21 Arak Tai'Roth <[EMAIL PROTECTED]>:
>
>
>
> > So I read over in the bakery how to install TinyMCE and use it with
> > CakePHP.
>
> > However, it's not working for me even though my code is essentially
> > identical.
>
> > Here is my code that is pertinent and locations of it:
> > /views/layouts/admin.ctp:
> > if (isset($javascript))
> > {
> > echo $javascript->link('/js/tiny_mce/tiny_mce.js');
> > }
>
> > /views/news/edit.ctp:
> > <script type="text/javascript">
> > tinyMCE.init({
> > theme : "simple",
> > mode : "textareas",
> > convert_urls : false
> > });
> > </script>
>
> > echo $form->input('note', array('label'=>false, 'type' => 'textarea',
> > 'rows'=>7, 'cols'=>50));
>
> > And yes I have the Javascript helper included in my app_controller.php
> > file.
> > It's not displaying the WYSIWYG editor instead of the textarea box,
> > still see the textarea box in all its normalness. Anyone have any
> > ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---