Hi,

Juerg Meier schrieb:
Hi Felix,

Actually, I was expecting something like this... Can you tell us what
needs to be declared in MANIFEST.MF and serviceComponents.xml in this
case?

To provide the FCK core files from within a bundle, you include the extracted FCK download into your bundle and declare the Sling-Bundle-Resources header.

For example unpack the files into the libs/fckeditor folder in your bundle and set the header as:

   Sling-Bundle-Resources: /libs/fckeditor

And you can use the editor by simply referring to /libs/fckeditor/.... in your HTML pages.

As for the tag lib: Currently the Sling JSP compiler looks for the taglib descriptors below the META-INF entry of deployed bundles. So to provide a bundle with the FCK Editor tag lib and be done. The easiest would probably be to include the library with bundle also providing the source. Just make sure to export all packages from the tag lib jar file.

Hope this helps.

Regards
Felix



Well, I'm anyhting but an FCK-specialist, but I guess there are not only
JS files to go into the package (re Alexander's statement further down),
but there's also a taglib provided. Would that go into the same OSGi
package, too?

Thanks & regards,
Juerg



On Thu, 2008-08-21 at 09:00 +0200, Felix Meschberger wrote:
Hi,

I might even add, that you may of course also pack the FCK files into a bundle and provide the files as bundle provides resources in the defined location.

Regards
Felix

Alexander Klimetschek schrieb:
There is no trick involved. Just place the javascript files of the FCK
editor into some location in your repository (eg. /libs/fckeditor),
create a HTML page that includes those files and uses the editor. To
send the html of the rich text field to the server, just use normal
form posts with Sling.

Regards,
Alex

On Wed, Aug 20, 2008 at 11:23 PM, Juerg Meier <[EMAIL PROTECTED]> wrote:
Hi,

I assume there's "a sling way" of integrating fck edtior into sling...
Most likely, day soft must have already done it, as it is also in their
CQ product... Can somebody share?

Thanks,
Juerg






Reply via email to