[Svn] r3435 - in trunk/roundcubemail: . program/js program/steps/mail skins/default

trac at roundcube.net trac at roundcube.net
Sun Mar 28 19:52:34 CEST 2010


Author: alec
Date: 2010-03-28 12:52:34 -0500 (Sun, 28 Mar 2010)
New Revision: 3435

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/js/editor.js
   trunk/roundcubemail/program/steps/mail/compose.inc
   trunk/roundcubemail/program/steps/mail/sendmail.inc
   trunk/roundcubemail/skins/default/editor_content.css
Log:
- Re-organize editor buttons, add blockquote and search buttons
- Make possible to write inside or after a quoted html message (#1485476)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2010-03-28 17:08:23 UTC (rev 3434)
+++ trunk/roundcubemail/CHANGELOG	2010-03-28 17:52:34 UTC (rev 3435)
@@ -1,6 +1,8 @@
 CHANGELOG RoundCube Webmail
 ===========================
 
+- Re-organize editor buttons, add blockquote and search buttons
+- Make possible to write inside or after a quoted html message (#1485476)
 - Fix bugs on unexpected IMAP connection close (#1486190, #1486270)
 - Iloha's imap.inc rewritten into rcube_imap_generic class
 - Added contact groups in address book (not finished yet)

Modified: trunk/roundcubemail/program/js/editor.js
===================================================================
--- trunk/roundcubemail/program/js/editor.js	2010-03-28 17:08:23 UTC (rev 3434)
+++ trunk/roundcubemail/program/js/editor.js	2010-03-28 17:52:34 UTC (rev 3435)
@@ -43,8 +43,8 @@
       theme : 'advanced',
       language : editor_lang,
       plugins : 'paste,emotions,media,nonbreaking,table,searchreplace,visualchars,directionality' + (spellcheck ? ',spellchecker' : ''),
-      theme_advanced_buttons1 : 'bold,italic,underline,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,link,unlink,emotions,charmap,code,forecolor,backcolor,fontselect,fontsizeselect, separator' + (spellcheck ? ',spellchecker' : '') + ',undo,redo,image,media,ltr,rtl',
-      theme_advanced_buttons2 : '',
+      theme_advanced_buttons1 : 'bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,outdent,indent,ltr,rtl,blockquote,|,forecolor,backcolor,fontselect,fontsizeselect',
+      theme_advanced_buttons2 : 'link,unlink,code,|,emotions,charmap,image,media,|,search' + (spellcheck ? ',spellchecker' : '') + ',undo,redo',
       theme_advanced_buttons3 : '',
       theme_advanced_toolbar_location : 'top',
       theme_advanced_toolbar_align : 'left',

Modified: trunk/roundcubemail/program/steps/mail/compose.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/compose.inc	2010-03-28 17:08:23 UTC (rev 3434)
+++ trunk/roundcubemail/program/steps/mail/compose.inc	2010-03-28 17:52:34 UTC (rev 3435)
@@ -613,7 +613,7 @@
     $prefix = sprintf("<p>On %s, %s wrote:</p>\n",
       $MESSAGE->headers->date,
       htmlspecialchars(Q($MESSAGE->get_header('from'), 'replace'), ENT_COMPAT, $RCMAIL->output->get_charset()));
-    $prefix .= '<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">';
+    $prefix .= '<blockquote>';
 
     if ($RCMAIL->config->get('top_posting')) {
       $prefix = '<br>' . $prefix;

Modified: trunk/roundcubemail/program/steps/mail/sendmail.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/sendmail.inc	2010-03-28 17:08:23 UTC (rev 3434)
+++ trunk/roundcubemail/program/steps/mail/sendmail.inc	2010-03-28 17:52:34 UTC (rev 3435)
@@ -366,10 +366,15 @@
 $message_body = get_input_value('_message', RCUBE_INPUT_POST, TRUE, $message_charset);
 
 if (!$savedraft) {
-  // remove signature's div ID
-  if ($isHtml)
+  if ($isHtml) {
+    // remove signature's div ID
     $message_body = preg_replace('/\s*id="_rc_sig"/', '', $message_body);
 
+    // add inline css for blockquotes
+    $bstyle = 'padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%';
+    $message_body = preg_replace('/<blockquote>/',
+	'<blockquote type="cite" style="'.$bstyle.'">', $message_body);
+  }
   // generic footer for all messages
   if (!empty($CONFIG['generic_message_footer'])) {
     $footer = file_get_contents(realpath($CONFIG['generic_message_footer']));

Modified: trunk/roundcubemail/skins/default/editor_content.css
===================================================================
--- trunk/roundcubemail/skins/default/editor_content.css	2010-03-28 17:08:23 UTC (rev 3434)
+++ trunk/roundcubemail/skins/default/editor_content.css	2010-03-28 17:52:34 UTC (rev 3435)
@@ -22,3 +22,10 @@
 	white-space: pre;
 	word-wrap: break-word; /* IE (and Safari) */
 }
+blockquote
+{
+	padding-left:5px;
+	border-left:#1010ff 2px solid;
+	margin-left:5px;
+	width:100%;
+}

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list