[Rt-commit] r12775 - in rt/branches/3.8-TESTING: . share/html/Elements share/html/NoAuth/RichText

jesse at bestpractical.com jesse at bestpractical.com
Fri May 30 17:44:19 EDT 2008


Author: jesse
Date: Fri May 30 17:44:19 2008
New Revision: 12775

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/lib/RT/Config.pm
   rt/branches/3.8-TESTING/share/html/Elements/HeaderJavascript
   rt/branches/3.8-TESTING/share/html/NoAuth/RichText/dhandler

Log:
 r32057 at 31b:  jesse | 2008-05-30 15:07:26 -0400
 * make rich text editing per-user configurable.
 * fix the content-type returned by fckeditor's css files


Modified: rt/branches/3.8-TESTING/lib/RT/Config.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Config.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/Config.pm	Fri May 30 17:44:19 2008
@@ -116,6 +116,14 @@
             Description => 'Number of search results',    #loc
         },
     },
+    MessageBoxRichText => {
+        Section => 'General',
+        Overridable => 1,
+        Widget => '/Widgets/Form/Boolean',
+        WidgetArguments => {
+            Description => 'WYSIWYG message composer' # loc
+        }
+    },
     MessageBoxWidth => {
         Section         => 'General',
         Overridable     => 1,

Modified: rt/branches/3.8-TESTING/share/html/Elements/HeaderJavascript
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Elements/HeaderJavascript	(original)
+++ rt/branches/3.8-TESTING/share/html/Elements/HeaderJavascript	Fri May 30 17:44:19 2008
@@ -54,7 +54,7 @@
 <script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/ahah.js"></script>
 <script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/prototype/prototype.js"></script>
 <script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/js/scriptaculous/scriptaculous.js?load=effects,controls"></script>
-% if ( RT->Config->Get('MessageBoxRichText')) {
+% if ( RT->Config->Get('MessageBoxRichText',  $session{'CurrentUser'}) ) {
 <script type="text/javascript" src="<%RT->Config->Get('WebPath')%>/NoAuth/RichText/fckeditor.js"></script>
 % }
 <script type="text/javascript"><!--
@@ -62,7 +62,8 @@
 % if ( $focus ) {
     onLoadHook("focusElementById('<% $focus %>')");
 % }
-% if ( RT->Config->Get('MessageBoxRichText')) {
+
+% if ( RT->Config->Get('MessageBoxRichText',  $session{'CurrentUser'})) {
     function ReplaceAllTextareas() {
         // replace all content and signature message boxes
         var allTextAreas = document.getElementsByTagName("textarea");

Modified: rt/branches/3.8-TESTING/share/html/NoAuth/RichText/dhandler
==============================================================================
--- rt/branches/3.8-TESTING/share/html/NoAuth/RichText/dhandler	(original)
+++ rt/branches/3.8-TESTING/share/html/NoAuth/RichText/dhandler	Fri May 30 17:44:19 2008
@@ -59,6 +59,7 @@
     xml     text/xml
     html    text/html
     js      application/javascript
+    css     text/css
     gif     image/gif
     jpg     image/jpeg
     png     image/png


More information about the Rt-commit mailing list