You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by e....@student.utwente.nl on 2007/01/18 13:54:26 UTC

fckeditor

Has someone used fckeditor in a portlet?
 
I want to create a portlet that gives a user the ability to change a document, 
I looked at the fckeditor java integration guide but it is still not clear to me how to install it and which files I should use in my portlet.
 
can someone help me?
 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: fckeditor

Posted by e....@student.utwente.nl.
Thank you for your help, you put me in the right direction.
 
I will keep on trying. thnx

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 15:43
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



no, because i'm working with jetspeed 1.x and I only rollout a jar and some
templates


-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 15:38
An: jetspeed-user@portals.apache.org
Betreff: RE: fckeditor


AH thank you,
so you put your fckeditor directory also in the basedirectory of your
portlet.
simpleportlet  - project.xml
                    - maven.xml
                    - project.properties
                    - src/
                    - fckeditor/

and then build the war, and depoy it in jetspeed

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 14:55
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



I have my fck here (jetspeed1.4):

apache/jakarta-tomcat-5.0.24/webapps/jetspeed/fckeditor

in my velocity portlet I declared:

<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
        window.onload = function()
        {
                var sBasePath = 'fckeditor/' ;
                #if($PERMISSIONS.get("DE") == "true")
                        var oFCKeditor_DE = new FCKeditor( 'description' ) ;
                        oFCKeditor_DE.BasePath  = sBasePath ;
                        oFCKeditor_DE.ReplaceTextarea() ;
                #end

        #foreach($ARTDESC in $DESC_EDITBEAN.getArticleDesc())
                #if($PERMISSIONS.get($ARTDESC.getCountry()) == "true")
                        var oFCKeditor_$ARTDESC.getCountry() = new
FCKeditor( 'oFCKeditor_$ARTDESC.getCountry()' ) ;
                        #if($ARTDESC.getCountry() == "DK")
                                oFCKeditor_DK.BasePath  = sBasePath ;
                                oFCKeditor_DK.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "ES")
                                oFCKeditor_ES.BasePath  = sBasePath ;
                                oFCKeditor_ES.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "FI")
                                oFCKeditor_FI.BasePath  = sBasePath ;
                                oFCKeditor_FI.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "FR")
                                oFCKeditor_FR.BasePath  = sBasePath ;
                                oFCKeditor_FR.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "INT")
                                oFCKeditor_INT.BasePath = sBasePath ;
                                oFCKeditor_INT.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "IT")
                                oFCKeditor_IT.BasePath  = sBasePath ;
                                oFCKeditor_IT.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "NL")
                                oFCKeditor_NL.BasePath  = sBasePath ;
                                oFCKeditor_NL.ReplaceTextarea() ;
                        #end
                #end
        #end
        }
</script>


then, later in my portlet:

#if($ARTDESC.getCountry() == "DK")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_DK">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "ES")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_ES">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "FI")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_FI">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "FR")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_FR">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "INT")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_INT">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "IT")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_IT">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "NL")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_NL">$ARTDESC.getDesc()</textarea>
#end



-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 14:41
An: jetspeed-user@portals.apache.org
Betreff: RE: fckeditor


the problem is my basic java knowledge. I am running FirstPortlet from
jetspeed wiki and want to integrate it in there.
Do I have to compile the FCKEDITOR directory with the portlet or place it in
a directory of tomcat and if so where?

Best regards,

Erik

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 13:59
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



you habe to include the javascripts to your protlet. they will declare your
textareas as fck-areas.


-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 13:54
An: jetspeed-user@portals.apache.org
Betreff: fckeditor


Has someone used fckeditor in a portlet?

I want to create a portlet that gives a user the ability to change a
document,
I looked at the fckeditor java integration guide but it is still not clear
to me how to install it and which files I should use in my portlet.

can someone help me?



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


AW: fckeditor

Posted by ap...@salesfactory.org.
no, because i'm working with jetspeed 1.x and I only rollout a jar and some
templates


-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl] 
Gesendet: Donnerstag, 18. Januar 2007 15:38
An: jetspeed-user@portals.apache.org
Betreff: RE: fckeditor


AH thank you,
so you put your fckeditor directory also in the basedirectory of your
portlet.
simpleportlet  - project.xml
                    - maven.xml
                    - project.properties
                    - src/
                    - fckeditor/
 
and then build the war, and depoy it in jetspeed

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 14:55
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



I have my fck here (jetspeed1.4):

apache/jakarta-tomcat-5.0.24/webapps/jetspeed/fckeditor

in my velocity portlet I declared:

<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
        window.onload = function()
        {
                var sBasePath = 'fckeditor/' ;
                #if($PERMISSIONS.get("DE") == "true")
                        var oFCKeditor_DE = new FCKeditor( 'description' ) ;
                        oFCKeditor_DE.BasePath  = sBasePath ;
                        oFCKeditor_DE.ReplaceTextarea() ;
                #end

        #foreach($ARTDESC in $DESC_EDITBEAN.getArticleDesc())
                #if($PERMISSIONS.get($ARTDESC.getCountry()) == "true")
                        var oFCKeditor_$ARTDESC.getCountry() = new
FCKeditor( 'oFCKeditor_$ARTDESC.getCountry()' ) ;
                        #if($ARTDESC.getCountry() == "DK")
                                oFCKeditor_DK.BasePath  = sBasePath ;
                                oFCKeditor_DK.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "ES")
                                oFCKeditor_ES.BasePath  = sBasePath ;
                                oFCKeditor_ES.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "FI")
                                oFCKeditor_FI.BasePath  = sBasePath ;
                                oFCKeditor_FI.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "FR")
                                oFCKeditor_FR.BasePath  = sBasePath ;
                                oFCKeditor_FR.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "INT")
                                oFCKeditor_INT.BasePath = sBasePath ;
                                oFCKeditor_INT.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "IT")
                                oFCKeditor_IT.BasePath  = sBasePath ;
                                oFCKeditor_IT.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "NL")
                                oFCKeditor_NL.BasePath  = sBasePath ;
                                oFCKeditor_NL.ReplaceTextarea() ;
                        #end
                #end
        #end
        }
</script>


then, later in my portlet:

#if($ARTDESC.getCountry() == "DK")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_DK">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "ES")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_ES">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "FI")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_FI">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "FR")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_FR">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "INT")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_INT">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "IT")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_IT">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "NL")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_NL">$ARTDESC.getDesc()</textarea>
#end



-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 14:41
An: jetspeed-user@portals.apache.org
Betreff: RE: fckeditor


the problem is my basic java knowledge. I am running FirstPortlet from
jetspeed wiki and want to integrate it in there.
Do I have to compile the FCKEDITOR directory with the portlet or place it in
a directory of tomcat and if so where?

Best regards,

Erik

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 13:59
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



you habe to include the javascripts to your protlet. they will declare your
textareas as fck-areas.


-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 13:54
An: jetspeed-user@portals.apache.org
Betreff: fckeditor


Has someone used fckeditor in a portlet?

I want to create a portlet that gives a user the ability to change a
document,
I looked at the fckeditor java integration guide but it is still not clear
to me how to install it and which files I should use in my portlet.

can someone help me?



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: fckeditor

Posted by e....@student.utwente.nl.
AH thank you,
so you put your fckeditor directory also in the basedirectory of your portlet.
simpleportlet  - project.xml
                    - maven.xml
                    - project.properties
                    - src/
                    - fckeditor/
 
and then build the war, and depoy it in jetspeed

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 14:55
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



I have my fck here (jetspeed1.4):

apache/jakarta-tomcat-5.0.24/webapps/jetspeed/fckeditor

in my velocity portlet I declared:

<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
        window.onload = function()
        {
                var sBasePath = 'fckeditor/' ;
                #if($PERMISSIONS.get("DE") == "true")
                        var oFCKeditor_DE = new FCKeditor( 'description' ) ;
                        oFCKeditor_DE.BasePath  = sBasePath ;
                        oFCKeditor_DE.ReplaceTextarea() ;
                #end

        #foreach($ARTDESC in $DESC_EDITBEAN.getArticleDesc())
                #if($PERMISSIONS.get($ARTDESC.getCountry()) == "true")
                        var oFCKeditor_$ARTDESC.getCountry() = new
FCKeditor( 'oFCKeditor_$ARTDESC.getCountry()' ) ;
                        #if($ARTDESC.getCountry() == "DK")
                                oFCKeditor_DK.BasePath  = sBasePath ;
                                oFCKeditor_DK.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "ES")
                                oFCKeditor_ES.BasePath  = sBasePath ;
                                oFCKeditor_ES.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "FI")
                                oFCKeditor_FI.BasePath  = sBasePath ;
                                oFCKeditor_FI.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "FR")
                                oFCKeditor_FR.BasePath  = sBasePath ;
                                oFCKeditor_FR.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "INT")
                                oFCKeditor_INT.BasePath = sBasePath ;
                                oFCKeditor_INT.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "IT")
                                oFCKeditor_IT.BasePath  = sBasePath ;
                                oFCKeditor_IT.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "NL")
                                oFCKeditor_NL.BasePath  = sBasePath ;
                                oFCKeditor_NL.ReplaceTextarea() ;
                        #end
                #end
        #end
        }
</script>


then, later in my portlet:

#if($ARTDESC.getCountry() == "DK")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_DK">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "ES")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_ES">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "FI")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_FI">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "FR")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_FR">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "INT")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_INT">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "IT")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_IT">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "NL")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_NL">$ARTDESC.getDesc()</textarea>
#end



-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 14:41
An: jetspeed-user@portals.apache.org
Betreff: RE: fckeditor


the problem is my basic java knowledge. I am running FirstPortlet from
jetspeed wiki and want to integrate it in there.
Do I have to compile the FCKEDITOR directory with the portlet or place it in
a directory of tomcat and if so where?

Best regards,

Erik

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 13:59
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



you habe to include the javascripts to your protlet. they will declare your
textareas as fck-areas.


-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 13:54
An: jetspeed-user@portals.apache.org
Betreff: fckeditor


Has someone used fckeditor in a portlet?

I want to create a portlet that gives a user the ability to change a
document,
I looked at the fckeditor java integration guide but it is still not clear
to me how to install it and which files I should use in my portlet.

can someone help me?



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: fckeditor

Posted by e....@student.utwente.nl.
can you tell me how to include javascript in the jsp file?

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 14:55
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



I have my fck here (jetspeed1.4):

apache/jakarta-tomcat-5.0.24/webapps/jetspeed/fckeditor

in my velocity portlet I declared:

<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
        window.onload = function()
        {
                var sBasePath = 'fckeditor/' ;
                #if($PERMISSIONS.get("DE") == "true")
                        var oFCKeditor_DE = new FCKeditor( 'description' ) ;
                        oFCKeditor_DE.BasePath  = sBasePath ;
                        oFCKeditor_DE.ReplaceTextarea() ;
                #end

        #foreach($ARTDESC in $DESC_EDITBEAN.getArticleDesc())
                #if($PERMISSIONS.get($ARTDESC.getCountry()) == "true")
                        var oFCKeditor_$ARTDESC.getCountry() = new
FCKeditor( 'oFCKeditor_$ARTDESC.getCountry()' ) ;
                        #if($ARTDESC.getCountry() == "DK")
                                oFCKeditor_DK.BasePath  = sBasePath ;
                                oFCKeditor_DK.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "ES")
                                oFCKeditor_ES.BasePath  = sBasePath ;
                                oFCKeditor_ES.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "FI")
                                oFCKeditor_FI.BasePath  = sBasePath ;
                                oFCKeditor_FI.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "FR")
                                oFCKeditor_FR.BasePath  = sBasePath ;
                                oFCKeditor_FR.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "INT")
                                oFCKeditor_INT.BasePath = sBasePath ;
                                oFCKeditor_INT.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "IT")
                                oFCKeditor_IT.BasePath  = sBasePath ;
                                oFCKeditor_IT.ReplaceTextarea() ;
                        #elseif($ARTDESC.getCountry() == "NL")
                                oFCKeditor_NL.BasePath  = sBasePath ;
                                oFCKeditor_NL.ReplaceTextarea() ;
                        #end
                #end
        #end
        }
</script>


then, later in my portlet:

#if($ARTDESC.getCountry() == "DK")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_DK">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "ES")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_ES">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "FI")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_FI">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "FR")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_FR">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "INT")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_INT">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "IT")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_IT">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "NL")
        <textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_NL">$ARTDESC.getDesc()</textarea>
#end



-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 14:41
An: jetspeed-user@portals.apache.org
Betreff: RE: fckeditor


the problem is my basic java knowledge. I am running FirstPortlet from
jetspeed wiki and want to integrate it in there.
Do I have to compile the FCKEDITOR directory with the portlet or place it in
a directory of tomcat and if so where?

Best regards,

Erik

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 13:59
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



you habe to include the javascripts to your protlet. they will declare your
textareas as fck-areas.


-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 13:54
An: jetspeed-user@portals.apache.org
Betreff: fckeditor


Has someone used fckeditor in a portlet?

I want to create a portlet that gives a user the ability to change a
document,
I looked at the fckeditor java integration guide but it is still not clear
to me how to install it and which files I should use in my portlet.

can someone help me?



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


AW: fckeditor

Posted by ap...@salesfactory.org.
I have my fck here (jetspeed1.4):

apache/jakarta-tomcat-5.0.24/webapps/jetspeed/fckeditor

in my velocity portlet I declared:

<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
	window.onload = function()
	{
		var sBasePath = 'fckeditor/' ;
		#if($PERMISSIONS.get("DE") == "true")
			var oFCKeditor_DE = new FCKeditor( 'description' ) ;
			oFCKeditor_DE.BasePath	= sBasePath ;
			oFCKeditor_DE.ReplaceTextarea() ;
		#end

	#foreach($ARTDESC in $DESC_EDITBEAN.getArticleDesc())
		#if($PERMISSIONS.get($ARTDESC.getCountry()) == "true")
			var oFCKeditor_$ARTDESC.getCountry() = new
FCKeditor( 'oFCKeditor_$ARTDESC.getCountry()' ) ;
			#if($ARTDESC.getCountry() == "DK")
				oFCKeditor_DK.BasePath	= sBasePath ;
				oFCKeditor_DK.ReplaceTextarea() ;
			#elseif($ARTDESC.getCountry() == "ES")
				oFCKeditor_ES.BasePath	= sBasePath ;
				oFCKeditor_ES.ReplaceTextarea() ;
			#elseif($ARTDESC.getCountry() == "FI")
				oFCKeditor_FI.BasePath	= sBasePath ;
				oFCKeditor_FI.ReplaceTextarea() ;
			#elseif($ARTDESC.getCountry() == "FR")
				oFCKeditor_FR.BasePath	= sBasePath ;
				oFCKeditor_FR.ReplaceTextarea() ;
			#elseif($ARTDESC.getCountry() == "INT")
				oFCKeditor_INT.BasePath	= sBasePath ;
				oFCKeditor_INT.ReplaceTextarea() ;
			#elseif($ARTDESC.getCountry() == "IT")
				oFCKeditor_IT.BasePath	= sBasePath ;
				oFCKeditor_IT.ReplaceTextarea() ;
			#elseif($ARTDESC.getCountry() == "NL")
				oFCKeditor_NL.BasePath	= sBasePath ;
				oFCKeditor_NL.ReplaceTextarea() ;
			#end
		#end
	#end
	}
</script>


then, later in my portlet:

#if($ARTDESC.getCountry() == "DK")
	<textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_DK">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "ES")
	<textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_ES">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "FI")
	<textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_FI">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "FR")
	<textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_FR">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "INT")
	<textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_INT">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "IT")
	<textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_IT">$ARTDESC.getDesc()</textarea>
#elseif($ARTDESC.getCountry() == "NL")
	<textarea
style="color:black;background-color:white;font-size:10pt;font-weight:normal;
font-family:verdana,arial;width:100%" rows="10"
name="oFCKeditor_NL">$ARTDESC.getDesc()</textarea>
#end



-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl] 
Gesendet: Donnerstag, 18. Januar 2007 14:41
An: jetspeed-user@portals.apache.org
Betreff: RE: fckeditor


the problem is my basic java knowledge. I am running FirstPortlet from
jetspeed wiki and want to integrate it in there.
Do I have to compile the FCKEDITOR directory with the portlet or place it in
a directory of tomcat and if so where?
 
Best regards,
 
Erik

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 13:59
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



you habe to include the javascripts to your protlet. they will declare your
textareas as fck-areas.


-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 13:54
An: jetspeed-user@portals.apache.org
Betreff: fckeditor


Has someone used fckeditor in a portlet?

I want to create a portlet that gives a user the ability to change a
document,
I looked at the fckeditor java integration guide but it is still not clear
to me how to install it and which files I should use in my portlet.

can someone help me?



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: fckeditor

Posted by e....@student.utwente.nl.
the problem is my basic java knowledge. I am running FirstPortlet from jetspeed wiki and want to integrate it in there.
Do I have to compile the FCKEDITOR directory with the portlet or place it in a directory of tomcat and if so where?
 
Best regards,
 
Erik

________________________________

Van: apache@salesfactory.org [mailto:apache@salesfactory.org]
Verzonden: do 18-1-2007 13:59
Aan: 'Jetspeed Users List'
Onderwerp: AW: fckeditor



you habe to include the javascripts to your protlet. they will declare your
textareas as fck-areas.


-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl]
Gesendet: Donnerstag, 18. Januar 2007 13:54
An: jetspeed-user@portals.apache.org
Betreff: fckeditor


Has someone used fckeditor in a portlet?

I want to create a portlet that gives a user the ability to change a
document,
I looked at the fckeditor java integration guide but it is still not clear
to me how to install it and which files I should use in my portlet.

can someone help me?



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


AW: fckeditor

Posted by ap...@salesfactory.org.
you habe to include the javascripts to your protlet. they will declare your
textareas as fck-areas.


-----Ursprüngliche Nachricht-----
Von: e.j.w.vanbloem@student.utwente.nl
[mailto:e.j.w.vanbloem@student.utwente.nl] 
Gesendet: Donnerstag, 18. Januar 2007 13:54
An: jetspeed-user@portals.apache.org
Betreff: fckeditor


Has someone used fckeditor in a portlet?
 
I want to create a portlet that gives a user the ability to change a
document, 
I looked at the fckeditor java integration guide but it is still not clear
to me how to install it and which files I should use in my portlet.
 
can someone help me?
 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org