FCKEditor Edit Page Isssue

2010-01-07 Thread Uresh

This is my View page shows in controller code :::

class AdminController extends AppController {

var $name = 'Admin';
var $uses = array('Frmcontent'); // we can use multiple models by defining
the $uses variable.
var $components = array ('Crypter');
var $paginate = array('limit' => 1, 'page' => 1);
var $helpers = array('Html', 'Form', 'Javascript','FCKeditor1');

--
my function edit

function contentedit($id=null)
{
$this->sidebar ='CONTENT_MANAGEMENT';
$this->evnt = 'contentedit';
$this->layout = 'admin/admin';
$this->page='edit';
$this->set('page',$this->page);
$this->set('sidebar',$this->sidebar);
$this->set('evnt',$this->evnt);
$this->Frmcontent->id = $id;

if(!empty($this->data))
{
if($this->Frmcontent->save($this->data))
{
$this->Session->setFlash('Your post has been updated.');

$this->redirect(array('controller'=>'admin',
'action'=>"contentview"));
}
}
else
{
$this->data=$this->Frmcontent->read();
}
}

This is my View page shows in view page error shows :::

http://localhost/bestgymdeal_parth/admin/contentedit/23

As i click on edit link myurl show above link contenetedit is action in
controller and 23 is id of particular row.

The page displays error like.

/**/
Missing Method in AdminController

Error: The action FCKeditor is not defined in controller AdminController

Error: Create AdminController::FCKeditor() in file:
app\controllers\admin_controller.php.

http://old.nabble.com/file/p27071557/contentedit.ctp contentedit.ctp 

/***/

-- 
View this message in context: 
http://old.nabble.com/FCKEditor-Edit-Page-Isssue-tp27071557p27071557.html
Sent from the CakePHP mailing list archive at Nabble.com.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Fckeditor and or ckfinder server error issues

2009-08-08 Thread Parris

Hi Everyone,
I know this only partially applies here, but I was wondering if anyone
was able to get the file/image loader working with fckeditor and
hopefully with ckfinder.

I think the same internal server error 500 xml is happening with both.
Without ckeditor i get a similar message. Fckeditor other than this is
working fine for me...

Standalone mode does not work for ckeditor. Same error.

I set  auth check to return true for now.  I believe my paths are
right.

Any insight would be much appreciated...

Other alternatives, of any sort are also welcome. I just want a file
uploader + fck or tinymce editor type thing. Also image uploading/
thumbnailing is also highly desired.
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Using FCKEditor in a Plugin

2009-06-29 Thread craig.kaminsky

Thanks, so much for that tip, Miles. This is really nice and
definitely lighter weight than FCK & Tiny. Appreciate 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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Using FCKEditor in a Plugin

2009-06-29 Thread Miles J

If you are using jQuery, I highly suggest you use MarkItUp. Its about
90% lighter and easier then Tiny MCE and FCK Edit.
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: Using FCKEditor in a Plugin

2009-06-28 Thread Paul

My advice is forget it, FCK is going to load a lot of assets to build the
editor window, it will link internally to the base path, and so you'll have
to catch all the images js css its loading and make sure they are running
through your asset filter or whatever you are using to port these out of
your plug-in vendors dir. Then once thats all working it still means cake is
delivering all those assets = a lot of uneeded overhead = slow.

Its technically possible, but its really fiddly, and will most likely still
require application specific configuration that wouldn’t reside in your
plug-in anyway.

HTH,

Paul



-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of mattalexx
Sent: Monday, 29 June 2009 3:00 p.m.
To: CakePHP
Subject: Re: Using FCKEditor in a Plugin


I wish I could figure this one out too.

On May 30, 6:09 am, Dashman  wrote:
> Hi guys 
>
> I wasted my Friday evening and early Saturday morning trying to sort
> this one out, but to no avail.
>
> I have created a plugin to be used as a CMS, the plugin is called
> "admin". I have been able to integrate FCK by placing all the JS (the
> fckeditor folder) in webroot/js ...
>
> Now, I am wanting to make this plugin fully portable (the overall
> point of a plugin?). So, I have tried putting the files in /app/
> plugins/admin/vendors/js/. I then link to it in my plugin's default
> layout using:
>
> echo $javascript->link('/admin/js/FCKeditor/fckeditor.js');
>
> When I view the source code, I can see the files are linking
> correctly, and I can view the file when I use the url that Cake
> outputs.
>
> Now, the problem is, when I do it this way, I get the error
> 'JSController could not be found".
>
> Has any body got any idea as how to use FCKEditor withing a plugin,
> and keeping it all fully self contained?
>
> Cheers,
>
> D


__ Information from ESET NOD32 Antivirus, version of virus signature
database 4194 (20090628) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 4194 (20090628) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 4194 (20090628) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Using FCKEditor in a Plugin

2009-06-28 Thread Miles J

So weird, I was doing the same thing with MarkItUp 2 days ago.

The answer I found out is no, you cant link to vendor js/css files.
Only vendor css/js in the external vendors folder can be linked, not
the app vendor.
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Using FCKEditor in a Plugin

2009-06-28 Thread mattalexx

I wish I could figure this one out too.

On May 30, 6:09 am, Dashman  wrote:
> Hi guys 
>
> I wasted my Friday evening and early Saturday morning trying to sort
> this one out, but to no avail.
>
> I have created a plugin to be used as a CMS, the plugin is called
> "admin". I have been able to integrate FCK by placing all the JS (the
> fckeditor folder) in webroot/js ...
>
> Now, I am wanting to make this plugin fully portable (the overall
> point of a plugin?). So, I have tried putting the files in /app/
> plugins/admin/vendors/js/. I then link to it in my plugin's default
> layout using:
>
> echo $javascript->link('/admin/js/FCKeditor/fckeditor.js');
>
> When I view the source code, I can see the files are linking
> correctly, and I can view the file when I use the url that Cake
> outputs.
>
> Now, the problem is, when I do it this way, I get the error
> 'JSController could not be found".
>
> Has any body got any idea as how to use FCKEditor withing a plugin,
> and keeping it all fully self contained?
>
> Cheers,
>
> D
--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Using FCKEditor in a Plugin

2009-05-30 Thread Dashman

Hi guys 

I wasted my Friday evening and early Saturday morning trying to sort
this one out, but to no avail.

I have created a plugin to be used as a CMS, the plugin is called
"admin". I have been able to integrate FCK by placing all the JS (the
fckeditor folder) in webroot/js ...

Now, I am wanting to make this plugin fully portable (the overall
point of a plugin?). So, I have tried putting the files in /app/
plugins/admin/vendors/js/. I then link to it in my plugin's default
layout using:

echo $javascript->link('/admin/js/FCKeditor/fckeditor.js');

When I view the source code, I can see the files are linking
correctly, and I can view the file when I use the url that Cake
outputs.

Now, the problem is, when I do it this way, I get the error
'JSController could not be found".

Has any body got any idea as how to use FCKEditor withing a plugin,
and keeping it all fully self contained?

Cheers,

D

--~--~-~--~~~---~--~~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Sending config options to fckconfig.js in fckeditor

2008-10-23 Thread bartez

Can anyone help pleeease??

Thanks,

alex
--~--~-~--~~~---~--~~
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: Sending config options to fckconfig.js in fckeditor

2008-10-17 Thread bartez

Anyone got any ideas?

Cheers

Alex
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Sending config options to fckconfig.js in fckeditor

2008-10-16 Thread bartez

Hey all,

I've set up FCKeditor using the following code in my helper:

webroot . 'js' . $jsDS . 'fckeditor' . $jsDS;
$skinDir = $js . 'editor' . $jsDS . 'skins' . $jsDS;
$templateDir = $skinDir . (is_dir( $skinDir . $template ) ?
$template : 'default') . $jsDS;

$code  = "fckLoader = function ( ID ) {";
$code .= " var bFCKeditor = new FCKeditor( ID );";
$code .= " bFCKeditor.BasePath = '" . $js . "';";
$code .= " bFCKeditor.ToolbarSet = '" . $toolbar . "';";
$code .= " bFCKeditor.SkinPath = '" . $templateDir . "';";
$code .= " bFCKeditor.Height = " . $height . ";";
$code .= " bFCKeditor.Width = " . $width . ";";
$code .= " bFCKeditor.ReplaceTextarea();";
$code .= " }";

return $this->Javascript->link('fckeditor/fckeditor.js') .
$this->Javascript->codeBlock($code);
}

function editor( $fieldName )
{
$seperator = (strstr($fieldName, '.') ? '.' : '/');
$id = Inflector::camelize( str_replace($seperator, '_',
$fieldName) );
$code = "fckLoader('" . $id . "');";

return $this->Javascript->codeBlock($code);
}
}
?>


I'm using it with many different users and I'm looking for a way to
upload images and store them as webroot/img/userid.

Sessions didn't  worked so i have hacked into the various files to
create a FCKConfig.ImageUploadURL have an extra get variable on the
end.

It all works fine except i cannot pass the userid to the fckconfig.js.

I've tried


$code .= " bFCKeditor.Config['Testing'] = " . $test . ";";


and then added to the end of the FCKConfig.ImageUploadURL but it is
coming through as undefined.

Am i missing something or is there a better way of doing this.

I would really appreciate some guidance as I am on the point of
throwing out my computer.

Many thanks

Alex
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Problem with FCKEditor

2008-08-31 Thread Warringer

I want to add the FCKEditor to a Cake project.

But with every FCKHelper I use, I run into the same problem...

It appear to work, however the FCKEditor does not load correctly. The
iframe does appear, but the fckeditor.html is not loaded.

Apparently it does not exist...

Looking at it with Firebug, I get two GET requests for the
fckeditor.html on two different locations, that obviously are not
going to get the file.

First location:

http://localhost/js/fckeditor/editor/fckeditor.html?InstanceName=data[MediaCoverage][content]&Toolbar=Default

Response:



404 Not Found

Not Found
The requested URL /js/fckeditor/editor/fckeditor.html was not found
on this server.

Apache/2.2.9 (Unix) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/
5.2.6 mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 Server at
localhost Port 80


Second location:

http://localhost/opt/lampp/htdocs/xampp/www/workspace/CakeMSC/app/webroot/js/fckeditor/editor/fckeditor.html?InstanceName=data[MediaCoverage][content]&Toolbar=Default

Response:



404 Not Found

Not Found
The requested URL /opt/lampp/htdocs/xampp/www/workspace/CakeMSC/app/
webroot/js/fckeditor/editor/fckeditor.html was not found on this
server.

Apache/2.2.9 (Unix) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/
5.2.6 mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 Server at
localhost Port 80


Worse, the source of the iframe points at the correct location. And I
can try as I want, with different ways to get the location, I always
get those two GET requests...



Please someone help me...

--~--~-~--~~~---~--~~
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: FCKeditor

2008-07-08 Thread Chris Hartjes

On Tue, Jul 8, 2008 at 8:47 AM, kaushik <[EMAIL PROTECTED]> wrote:
>
> I want to integrate fckeditor in one of cakephp page. How do it? where
> I have to place the editor folder and how to integrate it?
> --~--~-~--~~~---~--~~

Perhaps Google is not working for you where you are?  Try this link as
a starting point, and next time try searching for an answer before
asking for help.

http://bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp




-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



FCKeditor

2008-07-08 Thread kaushik

I want to integrate fckeditor in one of cakephp page. How do it? where
I have to place the editor folder and how to integrate 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
-~--~~~~--~~--~--~---



Problem with FCKEditor

2008-06-19 Thread Warringer

Hello.

I'm a newb in Baking Cakes. :p

And I have a problem setting up the FCKEditor in Cake 1.2.

I have used the code for setting up FCK from the Bakery (http://
bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp) the
version for 1.2 of course.

Now I have the problem that the iframe outputs the layout of the page
rather than the FCK editor.

Of course I did some Google fu, to see if there was a solution and
even looked into this group. I did find a two messages, but it did not
really help, as the first message stated the problem I have as well,
while the other message simply say '$this->layout = false'.

I hope someone can help me here.

- Warringer

--~--~-~--~~~---~--~~
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: Using $this->data in a helper (FckEditor)

2008-05-29 Thread clemos

Hi

The Helper class has some good method for all that :
http://api.cakephp.org/class_helper.html
For exemple $helper->value(), which you can call, in your case, with
$fckeditor->value(), as your helper likely extends the main Helper
class...
I often use  $helper->__initInputField('fieldname') also, inside my
custom helpers, to generate the base input options array containing
value(), name, id, and form validation infos.
By the way, I don't know how you implemented the fckEditor thing, but
there are several tutorial on the web that rely on creating basic
input/text tags (generated by formhelper), and transforming them to
html editors afterwards through javascript with fckeditor... I've
personnally found this method cleaner than rewriting code from
formhelper.

Hope it helps...
+++
Clément

On Thu, May 29, 2008 at 11:37 AM, Somesid <[EMAIL PROTECTED]> wrote:
>
> Ok, can't figure if it's wrong or not, so I'm gonna ask the question
> here:
>
> I made a new fckEditor helper to handle some problematic of our own.
> The thing it does is that it instantiate an fckEditor named after the
> field like any other cake field (data[model][field]).
>
> So we got a display function like this to create our fckEditor field
> public function display($instance_name = '', $default_value = '',)
>
> which we call in the form like this
> echo $fckeditor->display('model.field',$text,...)
>
> My difficulties come to setting the value, first way we made this work
> was like this (in the helper):
> $this->_o_EditorInstance->Value = $text; //set the value in the
> textarea of the fckeditor
>
> and then in the controller:
> set($text, $this->data['model']['field']);
>
> All of this is working well, but I don't like the idea of having to
> set my value any time I got a fckEditor in a form for a field which is
> for me like any other. So what I noticed is that I was able to access
> directly $this->data['model']['field'] in my view or my helper which
> gets me to :
>
> $this->_o_EditorInstance->Value = $this->data['model']['field']; //I'm
> here in the helper
>
> I got ride off my $text, It's working well, I'm happy, but I'm afraid
> I'm going against the way cake works. And anyway it bother me, what
> would be wrong about accessing directly $this->data in a view, when it
> has been properly and cleanly set in the controller (As long as we
> only read values of our form from $this->data, as probably cake reads
> the data to set the value for a standard input).
>
> Hopes it's clear enough. Thx for your help.
>
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Using $this->data in a helper (FckEditor)

2008-05-29 Thread Somesid

Ok, can't figure if it's wrong or not, so I'm gonna ask the question
here:

I made a new fckEditor helper to handle some problematic of our own.
The thing it does is that it instantiate an fckEditor named after the
field like any other cake field (data[model][field]).

So we got a display function like this to create our fckEditor field
public function display($instance_name = '', $default_value = '',)

which we call in the form like this
echo $fckeditor->display('model.field',$text,...)

My difficulties come to setting the value, first way we made this work
was like this (in the helper):
$this->_o_EditorInstance->Value = $text; //set the value in the
textarea of the fckeditor

and then in the controller:
set($text, $this->data['model']['field']);

All of this is working well, but I don't like the idea of having to
set my value any time I got a fckEditor in a form for a field which is
for me like any other. So what I noticed is that I was able to access
directly $this->data['model']['field'] in my view or my helper which
gets me to :

$this->_o_EditorInstance->Value = $this->data['model']['field']; //I'm
here in the helper

I got ride off my $text, It's working well, I'm happy, but I'm afraid
I'm going against the way cake works. And anyway it bother me, what
would be wrong about accessing directly $this->data in a view, when it
has been properly and cleanly set in the controller (As long as we
only read values of our form from $this->data, as probably cake reads
the data to set the value for a standard input).

Hopes it’s clear enough. Thx for your help.


--~--~-~--~~~---~--~~
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: Has anyone integrated the fckeditor with the 1.2 version of CakePHP?

2008-02-12 Thread Adam Royle

Are you including the correct javascript file in your layout?

Here is my version that I use within 1.2.

http://bin.cakephp.org/view/2055097872

and in my form I have this:

(using a "Person" model)

...

echo $form->input('description',array('rows' => 6, 'cols' => 40));
echo $fck->load('PersonDescription', array('height' => 400, 'toolbar'
=> 'Basic'));
...

It's built to be extensible so you can add more keys to the $options
array as you see fit. The current keys I have defined are:

width, height, autoHide, toolbar

Hope that helps
Adam

On Feb 5, 3:12 am, Carl <[EMAIL PROTECTED]> wrote:
> ...and of course I tried all the versions listed in the comments, but
> all I get is the textarea, not the editor.
>
> On Feb 4, 8:33 am, Carl <[EMAIL PROTECTED]> wrote:
>
> > Thanks, I tried that, but I get this:
>
> > Warning (512): Method FormHelper::labelTag does not exist [CORE\cake
> > \libs\view\helper.php, line 148]
> > Notice (1024): Method textarea() is deprecated in HtmlHelper: see
> > FormHelper::input or FormHelper::textarea [CORE\cake\libs\view\helpers
> > \html.php, line 659]
> > Notice (8): Undefined variable: did [APP\views\helpers\fck.php, line
> > 6]
> > Notice (1024): Method tagErrorMsg() is deprecated in HtmlHelper: see
> > FormHelper::error [CORE\cake\libs\view\helpers\html.php, line 801]
>
> > which is why I asked about 1.2.
>
> > On Feb 4, 8:03 am, "[EMAIL PROTECTED]"
>
> > <[EMAIL PROTECTED]> wrote:
> > > Lots of people!
>
> > >http://bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp
>
> > > works fine for me.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Has anyone integrated the fckeditor with the 1.2 version of CakePHP?

2008-02-11 Thread Baz
I just used the lazy way and replaced all textareas instead of trying to
determine specific IDs through a helper.

I just restrict my usage to putting one text area on the form when I need to
include the FCKEditor.

On Feb 4, 2008 11:12 AM, Carl <[EMAIL PROTECTED]> wrote:

>
> ...and of course I tried all the versions listed in the comments, but
> all I get is the textarea, not the editor.
>
> On Feb 4, 8:33 am, Carl <[EMAIL PROTECTED]> wrote:
> > Thanks, I tried that, but I get this:
> >
> > Warning (512): Method FormHelper::labelTag does not exist [CORE\cake
> > \libs\view\helper.php, line 148]
> > Notice (1024): Method textarea() is deprecated in HtmlHelper: see
> > FormHelper::input or FormHelper::textarea [CORE\cake\libs\view\helpers
> > \html.php, line 659]
> > Notice (8): Undefined variable: did [APP\views\helpers\fck.php, line
> > 6]
> > Notice (1024): Method tagErrorMsg() is deprecated in HtmlHelper: see
> > FormHelper::error [CORE\cake\libs\view\helpers\html.php, line 801]
> >
> > which is why I asked about 1.2.
> >
> > On Feb 4, 8:03 am, "[EMAIL PROTECTED]"
> >
> > <[EMAIL PROTECTED]> wrote:
> > > Lots of people!
> >
> > >http://bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp
> >
> > > works fine for me.
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Has anyone integrated the fckeditor with the 1.2 version of CakePHP?

2008-02-04 Thread Carl

...and of course I tried all the versions listed in the comments, but
all I get is the textarea, not the editor.

On Feb 4, 8:33 am, Carl <[EMAIL PROTECTED]> wrote:
> Thanks, I tried that, but I get this:
>
> Warning (512): Method FormHelper::labelTag does not exist [CORE\cake
> \libs\view\helper.php, line 148]
> Notice (1024): Method textarea() is deprecated in HtmlHelper: see
> FormHelper::input or FormHelper::textarea [CORE\cake\libs\view\helpers
> \html.php, line 659]
> Notice (8): Undefined variable: did [APP\views\helpers\fck.php, line
> 6]
> Notice (1024): Method tagErrorMsg() is deprecated in HtmlHelper: see
> FormHelper::error [CORE\cake\libs\view\helpers\html.php, line 801]
>
> which is why I asked about 1.2.
>
> On Feb 4, 8:03 am, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Lots of people!
>
> >http://bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp
>
> > works fine for me.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Has anyone integrated the fckeditor with the 1.2 version of CakePHP?

2008-02-04 Thread Carl

Thanks, I tried that, but I get this:

Warning (512): Method FormHelper::labelTag does not exist [CORE\cake
\libs\view\helper.php, line 148]
Notice (1024): Method textarea() is deprecated in HtmlHelper: see
FormHelper::input or FormHelper::textarea [CORE\cake\libs\view\helpers
\html.php, line 659]
Notice (8): Undefined variable: did [APP\views\helpers\fck.php, line
6]
Notice (1024): Method tagErrorMsg() is deprecated in HtmlHelper: see
FormHelper::error [CORE\cake\libs\view\helpers\html.php, line 801]

which is why I asked about 1.2.

On Feb 4, 8:03 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Lots of people!
>
> http://bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp
>
> works fine for me.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Has anyone integrated the fckeditor with the 1.2 version of CakePHP?

2008-02-04 Thread [EMAIL PROTECTED]

Lots of people!

http://bakery.cakephp.org/articles/view/using-fckeditor-with-cakephp

works fine for me.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Has anyone integrated the fckeditor with the 1.2 version of CakePHP?

2008-02-04 Thread Carl

Has anyone integrated the fckeditor with the 1.2 version of CakePHP?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to use "vendors" directory to share Fckeditor?

2007-11-12 Thread avairet

Hello!

Thank's for your reply. My question wasn't clear...
Of course, "editor directory" and "fckconfig.js", "fckeditor.js",
"fcktemplates.xml",  "fckstyles.xml" must be in "webroot/js/" because
of the client javascript!

My real problem is that if I put "fckeditor.php" file (the class) in
"cake/vendors", the class is not found in my Helper.
But, if I put "fckeditor.php" in "app/vendors", that's OK.
For only one app is good, but to share cake core between many app,
this would be better to share fckeditor too.

Excuse me for my simple English, I hope my post is understandable...

BR

Avairet




On 9 nov, 19:12, chad <[EMAIL PROTECTED]> wrote:
> I have been unsuccessful with using fckeditor from the vendors
> directory as well.  I think fckeditor servers html as well as js, so I
> don't think that the vendors dir is equiped for such a complex
> javascript app.  I solved this buy writing a really simple rsync
> script to copy fckeditor to all of my apps' webroot/js dir.
>
> On Nov 9, 9:01 am, avairet <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > My Cake 1.2 installation:
>
> > - "Cake core" and "vendors dir" are in 'C:/WEB/cake'
>
> > - "App dir" is in 'C:/WEB/cake_apps/caketests'
>
> > - "Webroot dir" is in 'C:/WEB/www/caketests' (in the web server
> > document root).
>
> > I want use Fckeditor and share between multi-app.
> > So I copy FCK "editor dir", "fckconfig.js", "fckeditor.php", etc. in
> > 'C:/WEB/cake/vendors/fckeditor/
>
> > Then I write "vendor('fckeditor')" at the top of my controller.
> > But when I try to instanciate my Fckeditor object in a helper/view,
> > Cake answer me "Class 'FCKeditor' not found"?!
> > Same problem if I write "vendor('fckeditor')" in my view or in my
> > helper...
>
> > How can I do that?
>
> > HELPER :
>
> > class FckeditorHelper extends Helper {
> > public function load ($editor_name,$dimensions = array(),$toolbar =
> > 'Default') {
> > if (empty($dimensions))
> > {
> > $dimensions['width'] = 500;
> > $dimensions['height'] = 300;
> > }
> > $my_editor = new FCKeditor($editor_name);
> > $my_editor->BasePath =
> > 'c:'.DS.'WEB'.DS.'cake'.DS.'vendors'.DS.'fckeditor/';
> > $my_editor->Width = $dimensions['width'];
> > $my_editor->Height = $dimensions['height'];
> > $my_editor->ToolbarSet = $toolbar;
> > $this->controller->set('fckeditor', $my_editor);
> > }
>
> > }
>
> > Avairet


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to use "vendors" directory to share Fckeditor?

2007-11-09 Thread chad

I have been unsuccessful with using fckeditor from the vendors
directory as well.  I think fckeditor servers html as well as js, so I
don't think that the vendors dir is equiped for such a complex
javascript app.  I solved this buy writing a really simple rsync
script to copy fckeditor to all of my apps' webroot/js dir.

On Nov 9, 9:01 am, avairet <[EMAIL PROTECTED]> wrote:
> Hi,
>
> My Cake 1.2 installation:
>
> - "Cake core" and "vendors dir" are in 'C:/WEB/cake'
>
> - "App dir" is in 'C:/WEB/cake_apps/caketests'
>
> - "Webroot dir" is in 'C:/WEB/www/caketests' (in the web server
> document root).
>
> I want use Fckeditor and share between multi-app.
> So I copy FCK "editor dir", "fckconfig.js", "fckeditor.php", etc. in
> 'C:/WEB/cake/vendors/fckeditor/
>
> Then I write "vendor('fckeditor')" at the top of my controller.
> But when I try to instanciate my Fckeditor object in a helper/view,
> Cake answer me "Class 'FCKeditor' not found"?!
> Same problem if I write "vendor('fckeditor')" in my view or in my
> helper...
>
> How can I do that?
>
> HELPER :
>
> class FckeditorHelper extends Helper {
> public function load ($editor_name,$dimensions = array(),$toolbar =
> 'Default') {
> if (empty($dimensions))
>     {
> $dimensions['width'] = 500;
> $dimensions['height'] = 300;
> }
> $my_editor = new FCKeditor($editor_name);
>     $my_editor->BasePath =
> 'c:'.DS.'WEB'.DS.'cake'.DS.'vendors'.DS.'fckeditor/';
> $my_editor->Width = $dimensions['width'];
> $my_editor->Height = $dimensions['height'];
> $my_editor->ToolbarSet = $toolbar;
> $this->controller->set('fckeditor', $my_editor);
> }
>
> }
>
> Avairet


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to use "vendors" directory to share Fckeditor?

2007-11-09 Thread avairet

Hi,

My Cake 1.2 installation:

- "Cake core" and "vendors dir" are in 'C:/WEB/cake'

- "App dir" is in 'C:/WEB/cake_apps/caketests'

- "Webroot dir" is in 'C:/WEB/www/caketests' (in the web server
document root).

I want use Fckeditor and share between multi-app.
So I copy FCK "editor dir", "fckconfig.js", "fckeditor.php", etc. in
'C:/WEB/cake/vendors/fckeditor/

Then I write "vendor('fckeditor')" at the top of my controller.
But when I try to instanciate my Fckeditor object in a helper/view,
Cake answer me "Class 'FCKeditor' not found"?!
Same problem if I write "vendor('fckeditor')" in my view or in my
helper...

How can I do that?

HELPER :

class FckeditorHelper extends Helper {
public function load ($editor_name,$dimensions = array(),$toolbar =
'Default') {
if (empty($dimensions))
{
$dimensions['width'] = 500;
$dimensions['height'] = 300;
}
$my_editor = new FCKeditor($editor_name);
$my_editor->BasePath =
'c:'.DS.'WEB'.DS.'cake'.DS.'vendors'.DS.'fckeditor/';
$my_editor->Width = $dimensions['width'];
$my_editor->Height = $dimensions['height'];
$my_editor->ToolbarSet = $toolbar;
$this->controller->set('fckeditor', $my_editor);
}
}

Avairet


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Kae's filemanager - FCKeditor - $_SERVER['DOCUMENT_ROOT'] problem

2007-08-21 Thread double07

Nevermind, got this sorted out.

On Aug 21, 9:02 am, double07 <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm trying to configure Kae's filemanager (http://kfm.verens.com/) for
> FCKeditor and I'm having a problem with cake. You can see my post over
> at the KFM forums (http://kfm.verens.com/phpBB3/viewtopic.php?
> f=2&t=152) that the developer is saying $_SERVER['DOCUMENT_ROOT'] is
> not returning a path. On my testing server at home it works fine but
> on my production server I'm getting the errors. Also on a non cake
> site on the same server KFM works fine.
>
> Is anybody familiar with these apps/plugins and does anyone know what
> could be causing this?
>
> TIA - Brett.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Kae's filemanager - FCKeditor - $_SERVER['DOCUMENT_ROOT'] problem

2007-08-20 Thread double07

Hi all,

I'm trying to configure Kae's filemanager (http://kfm.verens.com/) for
FCKeditor and I'm having a problem with cake. You can see my post over
at the KFM forums (http://kfm.verens.com/phpBB3/viewtopic.php?
f=2&t=152) that the developer is saying $_SERVER['DOCUMENT_ROOT'] is
not returning a path. On my testing server at home it works fine but
on my production server I'm getting the errors. Also on a non cake
site on the same server KFM works fine.

Is anybody familiar with these apps/plugins and does anyone know what
could be causing this?

TIA - Brett.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: FCKEditor Problem

2007-05-23 Thread [EMAIL PROTECTED]

I have resolved using:
$(field_name).value=field_value;


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: FCKEditor Problem

2007-05-23 Thread [EMAIL PROTECTED]


I have maked this modify but the problem is not resolved.
But I've noticed that if I do a alert of ($('ni".
$uniq."').getInputs(null,'data[Newsitem][text]') [0].value)  I get
only the tag .
Instead if I do an alert of (   $F(field_name)) I get exactly the
value in the tectarea before the change.
The problem is to assing the 'field_value' to '$F(field_name)'.
Marco


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: FCKEditor Problem

2007-05-22 Thread Jeremy David Pointer

Try something like the below :
The key here is the 'before' section in the ajax submit, FCKEditor attaches 
itself to the forms submit action but that isn't used with an ajax submit, so 
you have to call the code to update the form field manually.
I found this methodology somewhere in the FCKEditor faq/documentation/user 
group.


echo $ajax->submit('Save',array("update"=>"updatediv_".$uniq,

"class"=>"panelButt",

'indicator' => 'spinner_'.$uniq,

'before' => "for (instance in FCKeditorAPI.__Instances) {

 field_name = instance.toString();

 if (field_name.indexOf('".$uniq."')>=0) {

field_value = 
FCKeditorAPI.GetInstance(field_name).GetXHTML();

   $('ni".$uniq."').getInputs(null,'data[Newsitem][text]')
[0].value = field_value;

}

   }"
)
);

On Tuesday 22 May 2007 09:52, [EMAIL PROTECTED] wrote:
> Can anyone  help me to resolve this problem?
> Or can  anyone suggests me a alternative method?
> Many thanks
>
> On 21 Mag, 12:15, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Instead if I used the $html->submit it works fine.
> >
> > On 21 Mag, 11:58, "[EMAIL PROTECTED]"
> >
> > <[EMAIL PROTECTED]> wrote:
> > > I have to useFCKEditorto edit posts in my application.
> > > I use a form with a textarea where I loadFCKEditor. The form is
> > > submitted with $ajax->submit.
> > > Myproblemis that the modifies that I do withFCKEditoris not passed
> > > to the controller.
> > > How and where must I use the "htmlspecialchars"  to get the right
> > > result?
> > > Many Thanks
> > > Marco- Nascondi testo tra virgolette -
> >
> > - Mostra testo tra virgolette -
>
> 

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: FCKEditor Problem

2007-05-22 Thread [EMAIL PROTECTED]

Can anyone  help me to resolve this problem?
Or can  anyone suggests me a alternative method?
Many thanks

On 21 Mag, 12:15, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Instead if I used the $html->submit it works fine.
>
> On 21 Mag, 11:58, "[EMAIL PROTECTED]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > I have to useFCKEditorto edit posts in my application.
> > I use a form with a textarea where I loadFCKEditor. The form is
> > submitted with $ajax->submit.
> > Myproblemis that the modifies that I do withFCKEditoris not passed
> > to the controller.
> > How and where must I use the "htmlspecialchars"  to get the right
> > result?
> > Many Thanks
> > Marco- Nascondi testo tra virgolette -
>
> - Mostra testo tra virgolette -


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: FCKEditor Problem

2007-05-21 Thread [EMAIL PROTECTED]

Instead if I used the $html->submit it works fine.


On 21 Mag, 11:58, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I have to use FCKEditor to edit posts in my application.
> I use a form with a textarea where I load FCKEditor. The form is
> submitted with $ajax->submit.
> My problem is that the modifies that I do with FCKEditor is not passed
> to the controller.
> How and where must I use the "htmlspecialchars"  to get the right
> result?
> Many Thanks
> Marco


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



FCKEditor Problem

2007-05-21 Thread [EMAIL PROTECTED]

I have to use FCKEditor to edit posts in my application.
I use a form with a textarea where I load FCKEditor. The form is
submitted with $ajax->submit.
My problem is that the modifies that I do with FCKEditor is not passed
to the controller.
How and where must I use the "htmlspecialchars"  to get the right
result?
Many Thanks
Marco


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: editInPlace fckeditor

2006-11-17 Thread bingo

Hi Ismael,

Thanks for the pointer..I think I saw it...and got fckeditor
working...but now sure how to display FCKeditor when user double clicks
on a paragraph...

Bingo


--~--~-~--~~~---~--~~
 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
-~--~~~~--~~--~--~---



Re: editInPlace fckeditor

2006-11-17 Thread Ismael S. Kafeltz

Maybe this helps: http://bakery.cakephp.org/articles/view/143


--~--~-~--~~~---~--~~
 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
-~--~~~~--~~--~--~---



editInPlace fckeditor

2006-11-17 Thread bingo

Hi,

I am wondering did anyone try getting FCKEditor instead of regular
textarea for editInPlaceI would like to have that functionality.
But I am not very good with ajax and javascript.

Please let me know if you guys have some interesting pointers for that

Regards,
bingo


--~--~-~--~~~---~--~~
 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
-~--~~~~--~~--~--~---



Re: Problem with FCKEditor

2006-09-10 Thread John Zimmerman
Granted it is probably not Cake related, upgrading to the current stable version of Cake won't hurt.If you are having problems with your code like the original poster is upgrading eliminates the chance that a known bug in cake that has been fixed in the current release is not contributing to the problem.
There were also security related fixes that would be wise to apply.It will also give you a chance to refactor portions of your code to look for possible causes to the problem.  So you would be doing two things at once.  Looking for bugs, and upgrading your project to apply bug fixes and security patches.
On 9/9/06, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote:
This is probably not directly cake related, but raher some param must bewrong.What method r u using ? Did you see my post on fck ?:
http://groups.google.com/group/cake-php/browse_thread/thread/de6ecd314cb7597/22aa22e717f6e456?lnk=gst&q=fck&rnum=3#22aa22e717f6e456[EMAIL PROTECTED] wrote:> Hi,
>> I am facing some problems with FCKeditor.>> I am trying to display the editor in my html page and I followed the> steps described in> 
http://wiki.cakephp.org/tutorials:online_editor-fckeditor>> I have used the same code that they given.> After changing the basepath in thtml file , I could able to display the> toolbar for the editor. But it is not displaying the text area.
>> Any help ?>>> >>>

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Problem with FCKEditor

2006-09-09 Thread Olivier Percebois-Garve

This is probably not directly cake related, but raher some param must be 
wrong.
What method r u using ? Did you see my post on fck ?:
http://groups.google.com/group/cake-php/browse_thread/thread/de6ecd314cb7597/22aa22e717f6e456?lnk=gst&q=fck&rnum=3#22aa22e717f6e456

[EMAIL PROTECTED] wrote:
> Hi,
>
> I am facing some problems with FCKeditor.
>
> I am trying to display the editor in my html page and I followed the
> steps described in
> http://wiki.cakephp.org/tutorials:online_editor-fckeditor
>
> I have used the same code that they given.
> After changing the basepath in thtml file , I could able to display the
> toolbar for the editor. But it is not displaying the text area.
>
> Any help ?
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Problem with FCKEditor

2006-09-09 Thread John Zimmerman
First upgrade to the current version of Cake so that more people will be better able to help troubleshoot.On 9/9/06, [EMAIL PROTECTED]
 <[EMAIL PROTECTED]> wrote:Thanks for the reply..
But  the textarea is not coming only the toolbar is coming .I am using cake 1.0.1.2708 version and I didn't use the bake.php.Any help ?
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Problem with FCKEditor

2006-09-09 Thread [EMAIL PROTECTED]

Thanks for the reply..

But  the textarea is not coming only the toolbar is coming .

I am using cake 1.0.1.2708 version and I didn't use the bake.php.

Any help ?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Problem with FCKEditor

2006-09-08 Thread [EMAIL PROTECTED]

Maybe is better to work with newer code
I try to give you my solution.

I use cakephp 1.1.7
I create the table. (see tutorial)
I configure config/database.php (see tutorial)
I copy the files in section "Installing FCKeditor" (see tutorial)
*** use the folder /vendor/ in the root.
I use bake.php to generate the code for the model, controller and view.

   (see Building the Bakery on
http://cakephp.org/screencasts)
I use not interactively for the generation.
I copy this code in a good location in /app/   (not other location)
I change the controller
>>>>>> function edit($id=null) {
 if(empty($this->data)) {
  $this->data = $this->Content->read(null, $id);
>>>>>>>   $this->set('data', $this->data);

I copy from the tutorial the view contents/edit (see tutorial)
I test...


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Problem with FCKEditor

2006-09-08 Thread [EMAIL PROTECTED]


Hi,

I am facing some problems with FCKeditor.

I am trying to display the editor in my html page and I followed the
steps described in
http://wiki.cakephp.org/tutorials:online_editor-fckeditor

I have used the same code that they given.
After changing the basepath in thtml file , I could able to display the
toolbar for the editor. But it is not displaying the text area.

Any help ?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Image uploading in FCKeditor?

2006-09-02 Thread Olivier Percebois-Garve

Glad that you got it working.
but I cant tell anything about your question... sorry


[EMAIL PROTECTED] wrote:
> Hi Olivier - I followed your instructions in your other post and I did
> get it to work.  Do you know why it works if you use
> app/webroot/files/fck as the upload directory, but it doesn't work if
> you use app/webroot/img?
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Image uploading in FCKeditor?

2006-09-02 Thread [EMAIL PROTECTED]

Hi Olivier - I followed your instructions in your other post and I did
get it to work.  Do you know why it works if you use
app/webroot/files/fck as the upload directory, but it doesn't work if
you use app/webroot/img?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Image uploading in FCKeditor?

2006-09-02 Thread Olivier Percebois-Garve

did you looked at that ?

http://groups.google.fr/group/cake-php/browse_thread/thread/de6ecd314cb7597/22aa22e717f6e456?lnk=gst&q=fck&rnum=2#22aa22e717f6e456


[EMAIL PROTECTED] wrote:
> Does anyone have image uploading working with FCKeditor 2.3.1 and
> CakePHP 1.1.7.3363?  I followed the tutorial but it still doesn't work:
>
> http://wiki.cakephp.org/tutorials:online_editor-fckeditor?s=fckeditor
>
> The FCKeditor seems to work great with Cake except for image uploading.
>
>
> >
>
>   


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Image uploading in FCKeditor?

2006-09-02 Thread [EMAIL PROTECTED]

Does anyone have image uploading working with FCKeditor 2.3.1 and
CakePHP 1.1.7.3363?  I followed the tutorial but it still doesn't work:

http://wiki.cakephp.org/tutorials:online_editor-fckeditor?s=fckeditor

The FCKeditor seems to work great with Cake except for image uploading.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: FCKeditor & CakePHP: howto enable opera without having fckeditor.js

2006-08-22 Thread [EMAIL PROTECTED]

oh and for the record, i tried passing EnableOpera everywhere i could
before altering the code.  (in the view, after creating the object and
before rendering it, in the constructorcode of the class, in the
config.js ...) all to no avail.

I also i forgot to mention that opera does show the toolbar and stuff,
but it doesn't work like it should.  buttons become un-usable after
clicking them a few times etc.  (but afaik, there are more known
problems with javascript code and the new opera 9.   wether it's opera
who is very (and always has been) very strict on things, or just can't
handle the code, i don't know)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



FCKeditor & CakePHP: howto enable opera without having fckeditor.js

2006-08-22 Thread [EMAIL PROTECTED]

Hello, on the wiki, there are 2 tutorials covering fckeditor:
http://wiki.cakephp.org/tutorials:beginners_only?s=fckeditor#step_7rich_text_editing_with_fckeditor
and: http://wiki.cakephp.org/tutorials:online_editor-fckeditor

both of them tell you the same when it comes to copying files from the
fckeditor archive to the cake/app folders.  they tell you to copy some
files, but _not_ to copy fckeditor.js, so that's what i did and what
everybody else did, i guess

now, there is the problem that for some weird reason that fckeditor
doesn't enable itself when you're using opera (it uses the user agent
string to see that), so you have to enable it manually as explained
here: http://wiki.fckeditor.net/FAQ#opera

now here is the catch! they use fckeditor.js, and we use fckeditor.php,
which is -functionality-wise- about the same i guess, but written in an
other language.
what they don't mention in the faq is thet setting the EnableOpera
variable in the php version has no effect.  Even more, if you check the
logic in the php file, you'll see that the constructor calls
CreateHtml(), which calls IsCompatible()

Now, the problem is when you compare the .js version and the .php
you'll see that the js one checks for EnableOpera but the .php version
doesn't do that at all.  So as far as i know, when using the php
version there is no option to enable the editor when you are using
opera. (this is hardcoded) none of this is mentioned in their faq.

So what did i do?
I added this right before the "else return false;" in IsCompatible.

else if(strpos($sAgent, 'Opera') !== false)
{
return true;
}

That way the editor works in opera.
If i overlooked something, please tell me, otherwise may god have mercy
on our souls, cause this is bad programming/documenting practice.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---