$this->layout = false;
On Fri, Mar 28, 2008 at 11:07 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> I'm trying to adjust the famous fck article
>
> http://wsapi.infospace.com/clickserver/_iceUrlFlag=1?rawURL=http%3A%2F%2Fbakery.cakephp.org%2Farticles%2Fview%2Fusing-fckeditor-with-cakephp&0=&1=0&4=207.97.206.18&5=72.54.164.58&9=6edf9510a9c84d6990bdc556a190c801&10=1&11=pch.blingo&13=search&14=867530&15=main-title&17=1&18=1&19=0&20=0&21=1&22=ZfV0u6LvGsw%3D&40=99Oj9%2BStTYhxmqB1b8fzfw%3D%3D&_IceUrl=true
>
> for cakephp 1.2
>
> helper fxn is like this
> function fckload($id, $toolbar = 'Default') {
> $did = "";
> foreach (explode('.', $id) as $v) {
> $did .= ucfirst($v);
> }
>
> return <<
> fckLoader_$did = function () {
> var bFCKeditor_$did = new FCKeditor('$did');
> bFCKeditor_$did.BasePath = '/js/';
> bFCKeditor_$did.ToolbarSet = '$toolbar';
> bFCKeditor_$did.ReplaceTextarea();
> }
> fckLoader_$did();
>
> FCK_CODE;
> }
>
> but when i call it with
> echo $form->textarea("Page.body",array(
> "div"=>false,"id"=>"Editable","value"=>
> $contents ,"rows"=>10,"cols"=>45
> ));
> ...
> echo $editor->fckload('Editable');
>
> It puts a complete page, with my layout/site logo/navigation embedded
> into the spot where the textarea was
>
> Anyone have better code for this?
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~--~~~~--~~--~--~---