Sunday, June 28, 2009

RE: Using FCKEditor in a Plugin

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

No comments: