Hi,
This is very simple, i'm already using it.
You just have to design a jsp like editor_rte.jsp, but with the fck (you'll
fine a example joined to this mail).
Then you add this jsp in the list through your roller administration console,
and that's it. You will be then able to use fck in any blog you want.
Eric
The jsp :
-----------------------------
<%-- This page is designed to be included in edit-weblog.jsp --%>
<%@ include file="/taglibs.jsp" %>
<script type="text/javascript" src="../FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
<!--
function postWeblogEntry(publish) {
if (publish)
document.weblogEntryFormEx.publishEntry.value = "true";
document.weblogEntryFormEx.submit();
}
function changeSize(e, num) {
e.rows = e.rows + num;
var expires = new Date();
expires.setTime(expires.getTime() + 24 * 90 * 60 * 60 * 1000); // sets it
for approx 90 days.
setCookie("editorSize",e.rows,expires);
}
// -->
</script>
<%-- ===================================================================== --%>
<p class="toplabel"><fmt:message key="weblogEdit.summary" /></p>
<html:textarea property="summary" cols="75" rows="5" style="width: 100%"
tabindex="2"/>
<script type="text/javascript">
<!--
if (getCookie("editorSize") != null) {
document.weblogEntryFormEx.text.rows = getCookie("editorSize");
}
-->
</script>
<table style="width:100%"><tr><td align="right">
<!-- Add buttons to make this textarea taller or shorter -->
<input type="button" name="taller" value=" ↓ "
onclick="changeSize(document.weblogEntryFormEx.summary, 5)" />
<input type="button" name="shorter" value=" ↑ "
onclick="changeSize(document.weblogEntryFormEx.summary, -5)" />
</td></tr></table>
<%-- ===================================================================== --%>
<p class="toplabel"><fmt:message key="weblogEdit.content" /></p>
<html:hidden property="text" />
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'text' ) ;
oFCKeditor.BasePath = "/roller/FCKeditor/" ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = document.weblogEntryFormEx.text.value ;
oFCKeditor.Create() ;
</script>
-----Message d'origine-----
De : sate112 [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 31 août 2006 04:00
À : [email protected]
Objet : Can I use FCKEditor in roller?
How can I use FCKEditor in roller?
--
View this message in context:
http://www.nabble.com/Can-I-use-FCKEditor-in-roller--tf2193981s12275.html#a6071808
Sent from the Roller - Dev forum at Nabble.com.
-------------------------------------------------------------------------------------------
"Cette communication (y compris les pieces jointes) est reservee a l'usage
exclusif du destinataire (des destinataires) et peut contenir des informations
privilegiees, confidentielles, exemptees de divulgation selon la loi ou
protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute
utilisation, divulgation, distribution, reproduction, examen ou copie (totale
ou partielle) est non-autorisee et peut etre illegale. Tout message
electronique est susceptible d'alteration et son integrite ne peut etre
assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message
s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message,
merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de
distribution et de la destruction du message. Merci.
This transmission (including any attachments) is intended solely for the use of
the addressee(s) and may contain confidential information including trade
secrets which are privileged, confidential, exempt from disclosure under
applicable law and/or subject to copyright. If you are not an intended
recipient, any use, disclosure, distribution, reproduction, review or copying
(either whole or partial) is unauthorized and may be unlawful. E-mails are
susceptible to alteration and their integrity cannot be guaranteed.Sanofi
Pasteur shall not be liable for this e-mail if modified or falsified. If you
are not the intended recipient of this e-mail, please delete it immediately
from your system and notify the sender of the wrong delivery and the mail
deletion. Thank you."
**********************************************************************