**Joop van de Wege wrote:
 >Paul Broadwith wrote:
 >>/ I would like to change the size of the message box that is shown when
/>>/ you update a ticket. It’s currently around 10 lines high. In the
/>>/ RT_SiteConfig.pm file I changed the MessageBoxHeight variable to 30 
but
/>>/ this doesn’t seem to have made a difference – either it’s the wrong
/>>/ thing to change or it just isn’t working for me.
/>I think what you're seeing is a 'feature' of the rich text editing mode
 >of RT.
 >I saw the same and plan to disable it globally and then let anyone who
 >want to send HTML enriched correspondence do that via user prefs.
 >Fixing this will mean fixing FCKeditor. Complete documentation can be
 >found at http://www.fckeditor.net
 >Found the fckconfig.js file in /NoAuth/RichText/FCKeditor which contains
 >the settings used.

It's only partially the fckeditor's fault. While the fckeditor does 
replace the textarea with it's own size, the size can be specified by 
RT. Since RT doesn't specify a size, it uses the default one.

I've manually patched my /opt/rt3/share/html/Elements/HeaderJavascript 
to have a more reasonable size. If anyone else is interested:

--- HeaderJavascript.orig 2008-08-29 16:08:39.000000000 -0700
+++ HeaderJavascript 2008-08-29 16:47:01.000000000 -0700
@@ -104,7 +104,7 @@
typeField.setAttribute('value', 'text/html');
textArea.parentNode.appendChild(typeField);

- var oFCKeditor = new FCKeditor( textArea.name ) ;
+ var oFCKeditor = new FCKeditor( textArea.name, '100%', '400' ) ;
oFCKeditor.BasePath = "<%RT->Config->Get('WebPath')%>/NoAuth/RichText/";
oFCKeditor.ReplaceTextarea();
}


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to