[Rt-commit] r15878 - in rt/3.8/trunk: . etc share/html/Elements
falcone at bestpractical.com
falcone at bestpractical.com
Tue Sep 9 17:00:20 EDT 2008
Author: falcone
Date: Tue Sep 9 17:00:20 2008
New Revision: 15878
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/etc/RT_Config.pm.in
rt/3.8/trunk/lib/RT/Config.pm
rt/3.8/trunk/share/html/Elements/HeaderJavascript
Log:
r39576 at ketch: falcone | 2008-09-09 15:38:56 -0400
* make the height of the FCKeditor widget configurable
Modified: rt/3.8/trunk/etc/RT_Config.pm.in
==============================================================================
--- rt/3.8/trunk/etc/RT_Config.pm.in (original)
+++ rt/3.8/trunk/etc/RT_Config.pm.in Tue Sep 9 17:00:20 2008
@@ -819,6 +819,9 @@
Default width: 72, height: 15
+These settings only apply to the non-RichText message box.
+See below for Rich Text settings.
+
=cut
Set($MessageBoxWidth, 72);
@@ -840,6 +843,14 @@
Set($MessageBoxRichText, 1);
+=item C<$MessageBoxRichTextHeight>
+
+Height of RichText javascript enabled editing boxes (in pixels)
+
+=cut
+
+Set($MessageBoxRightTextHeight, 200);
+
=item C<$MessageBoxIncludeSignature>
Should your user's signatures (from their Preferences page) be included in Comments and Replies
Modified: rt/3.8/trunk/lib/RT/Config.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Config.pm (original)
+++ rt/3.8/trunk/lib/RT/Config.pm Tue Sep 9 17:00:20 2008
@@ -124,6 +124,14 @@
Description => 'WYSIWYG message composer' # loc
}
},
+ MessageBoxRichTextHeight => {
+ Section => 'General',
+ Overridable => 1,
+ Widget => '/Widgets/Form/Integer',
+ WidgetArguments => {
+ Description => 'Height of WYSIWYG message composer' # loc
+ }
+ },
MessageBoxWidth => {
Section => 'General',
Overridable => 1,
Modified: rt/3.8/trunk/share/html/Elements/HeaderJavascript
==============================================================================
--- rt/3.8/trunk/share/html/Elements/HeaderJavascript (original)
+++ rt/3.8/trunk/share/html/Elements/HeaderJavascript Tue Sep 9 17:00:20 2008
@@ -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%', <% RT->Config->Get('MessageBoxRightTextHeight') %> );
oFCKeditor.BasePath = "<%RT->Config->Get('WebPath')%>/NoAuth/RichText/";
oFCKeditor.ReplaceTextarea();
}
More information about the Rt-commit
mailing list