Re: Multiple Instances of TinyMCE
I'd check with the author of the helper, or diagnose it yourself. Basically you just need each element to have a different class/id in order for TinyMCE to select it. On Dec 7, 8:55 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > It appears to have worked, so I guess I will just end up doing it this > way. Thanks for your help. > > On Dec 7, 10:24 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > > > yea, I was just hoping for something that would use the helper, as > > that's the entire reason why I have it. But if I have to do this then > > I guess I have to do it this way. I will try this out and see if it > > works, don't see why it wouldn't. > > > On Dec 7, 9:55 am, Rob <[EMAIL PROTECTED]> wrote: > > > > I'm not sure what the helper you're talking about does, but all you > > > need to do to get TinyMce to work is to reference the control you want > > > it applied to with JavaScript like: > > > > > > > > > > tinyMCE.init({ > > > mode : "textareas", > > > theme : "simple", > > > editor_selector : "mceSimple" > > > > }); > > > > tinyMCE.init({ > > > mode : "textareas", > > > theme : "advanced", > > > editor_selector : "mceAdvanced"}); > > > > > > > > > > > > > > > > > > > > > > > > > > > (Fromhttp://tinymce.moxiecode.com/examples/example_04.php) > > > > On Dec 7, 5:35 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > > > > > anyone able to help? > > > > > On Dec 6, 9:04 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > > > > > > So I've been playing around with the TinyMCE Helper located in the > > > > > bakery and so far it's been pretty awesome. However I do have one > > > > > problem. In one of my areas there are two text boxes that need > > > > > editing, and so I would like TinyMCE to control both text boxes. This > > > > > is my code for that part of the form: > > > > > > echo $form->label('description', 'Description:'); > > > > > echo $tinymce->input('description', array('label' => false, > > > > > 'rows' => 20, 'cols' => 50)); > > > > > > echo $form->label('tech_description', 'Technical > > > > > Description:'); > > > > > echo $tinymce->input('tech_description', array('label' => > > > > > false, 'rows' => 20, 'cols' => 50)); > > > > > > However, only the first text box gets TinyMCE, the other one gets > > > > > reduced to a normal textarea box. So I am just wondering if anyone > > > > > knows how to make it produce two TinyMCE boxes so I can have multiple > > > > > instances of it. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Multiple Instances of TinyMCE
It appears to have worked, so I guess I will just end up doing it this way. Thanks for your help. On Dec 7, 10:24 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > yea, I was just hoping for something that would use the helper, as > that's the entire reason why I have it. But if I have to do this then > I guess I have to do it this way. I will try this out and see if it > works, don't see why it wouldn't. > > On Dec 7, 9:55 am, Rob <[EMAIL PROTECTED]> wrote: > > > I'm not sure what the helper you're talking about does, but all you > > need to do to get TinyMce to work is to reference the control you want > > it applied to with JavaScript like: > > > > > > > tinyMCE.init({ > > mode : "textareas", > > theme : "simple", > > editor_selector : "mceSimple" > > > }); > > > tinyMCE.init({ > > mode : "textareas", > > theme : "advanced", > > editor_selector : "mceAdvanced"}); > > > > > > > > > > > > > > > > > > > (Fromhttp://tinymce.moxiecode.com/examples/example_04.php) > > > On Dec 7, 5:35 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > > > > anyone able to help? > > > > On Dec 6, 9:04 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > > > > > So I've been playing around with the TinyMCE Helper located in the > > > > bakery and so far it's been pretty awesome. However I do have one > > > > problem. In one of my areas there are two text boxes that need > > > > editing, and so I would like TinyMCE to control both text boxes. This > > > > is my code for that part of the form: > > > > > echo $form->label('description', 'Description:'); > > > > echo $tinymce->input('description', array('label' => false, > > > > 'rows' => 20, 'cols' => 50)); > > > > > echo $form->label('tech_description', 'Technical > > > > Description:'); > > > > echo $tinymce->input('tech_description', array('label' => > > > > false, 'rows' => 20, 'cols' => 50)); > > > > > However, only the first text box gets TinyMCE, the other one gets > > > > reduced to a normal textarea box. So I am just wondering if anyone > > > > knows how to make it produce two TinyMCE boxes so I can have multiple > > > > instances of it. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Multiple Instances of TinyMCE
yea, I was just hoping for something that would use the helper, as that's the entire reason why I have it. But if I have to do this then I guess I have to do it this way. I will try this out and see if it works, don't see why it wouldn't. On Dec 7, 9:55 am, Rob <[EMAIL PROTECTED]> wrote: > I'm not sure what the helper you're talking about does, but all you > need to do to get TinyMce to work is to reference the control you want > it applied to with JavaScript like: > > > > tinyMCE.init({ > mode : "textareas", > theme : "simple", > editor_selector : "mceSimple" > > }); > > tinyMCE.init({ > mode : "textareas", > theme : "advanced", > editor_selector : "mceAdvanced"}); > > > > > > > > > > > (Fromhttp://tinymce.moxiecode.com/examples/example_04.php) > > On Dec 7, 5:35 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > > > anyone able to help? > > > On Dec 6, 9:04 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > > > > So I've been playing around with the TinyMCE Helper located in the > > > bakery and so far it's been pretty awesome. However I do have one > > > problem. In one of my areas there are two text boxes that need > > > editing, and so I would like TinyMCE to control both text boxes. This > > > is my code for that part of the form: > > > > echo $form->label('description', 'Description:'); > > > echo $tinymce->input('description', array('label' => false, > > > 'rows' => 20, 'cols' => 50)); > > > > echo $form->label('tech_description', 'Technical > > > Description:'); > > > echo $tinymce->input('tech_description', array('label' => > > > false, 'rows' => 20, 'cols' => 50)); > > > > However, only the first text box gets TinyMCE, the other one gets > > > reduced to a normal textarea box. So I am just wondering if anyone > > > knows how to make it produce two TinyMCE boxes so I can have multiple > > > instances of it. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Multiple Instances of TinyMCE
I'm not sure what the helper you're talking about does, but all you need to do to get TinyMce to work is to reference the control you want it applied to with JavaScript like: tinyMCE.init({ mode : "textareas", theme : "simple", editor_selector : "mceSimple" }); tinyMCE.init({ mode : "textareas", theme : "advanced", editor_selector : "mceAdvanced" }); (From http://tinymce.moxiecode.com/examples/example_04.php) On Dec 7, 5:35 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > anyone able to help? > > On Dec 6, 9:04 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > > > So I've been playing around with the TinyMCE Helper located in the > > bakery and so far it's been pretty awesome. However I do have one > > problem. In one of my areas there are two text boxes that need > > editing, and so I would like TinyMCE to control both text boxes. This > > is my code for that part of the form: > > > echo $form->label('description', 'Description:'); > > echo $tinymce->input('description', array('label' => false, > > 'rows' => 20, 'cols' => 50)); > > > echo $form->label('tech_description', 'Technical > > Description:'); > > echo $tinymce->input('tech_description', array('label' => > > false, 'rows' => 20, 'cols' => 50)); > > > However, only the first text box gets TinyMCE, the other one gets > > reduced to a normal textarea box. So I am just wondering if anyone > > knows how to make it produce two TinyMCE boxes so I can have multiple > > instances of it. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Multiple Instances of TinyMCE
anyone able to help? On Dec 6, 9:04 am, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > So I've been playing around with the TinyMCE Helper located in the > bakery and so far it's been pretty awesome. However I do have one > problem. In one of my areas there are two text boxes that need > editing, and so I would like TinyMCE to control both text boxes. This > is my code for that part of the form: > > echo $form->label('description', 'Description:'); > echo $tinymce->input('description', array('label' => false, > 'rows' => 20, 'cols' => 50)); > > echo $form->label('tech_description', 'Technical > Description:'); > echo $tinymce->input('tech_description', array('label' => > false, 'rows' => 20, 'cols' => 50)); > > However, only the first text box gets TinyMCE, the other one gets > reduced to a normal textarea box. So I am just wondering if anyone > knows how to make it produce two TinyMCE boxes so I can have multiple > instances of it. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---