[Oi-commits] r1322 - in trunk: forum media/css media/js/tinymce

oi-commits at pardus.org.tr oi-commits at pardus.org.tr
Thu May 1 16:59:07 EEST 2008


Author: erenturkay
Date: Thu May  1 16:59:07 2008
New Revision: 1322

Modified:
   trunk/forum/views.py
   trunk/media/css/forum.css
   trunk/media/js/tinymce/forum.js
Log:
tinyMCE now doesn't add first <p> tags and use <br /> which suits for us. Quotation now works better.

Modified: trunk/forum/views.py
=================================================================
--- trunk/forum/views.py	(original)
+++ trunk/forum/views.py	Thu May  1 16:59:07 2008
@@ -196,7 +196,8 @@
                                       '%s <%s>' % (request.user.username, FORUM_FROM_EMAIL),
                                       watchlist.user.email,
                                       headers = {'Message-ID': post.get_email_id(),
-                                                 'In-Reply-To': in_reply_to}
+                                                 'In-Reply-To': in_reply_to},
+                                      fail_silently = True
                                       )
 
             return HttpResponseRedirect(post.get_absolute_url())
@@ -287,7 +288,8 @@
                                   '%s<br /><br /><a href="%s">%s</a>' % (post.text, post_url, post_url),
                                   '%s <%s>' % (request.user.username, FORUM_FROM_EMAIL),
                                   FORUM_TO_EMAIL,
-                                  headers = {'Message-ID': topic.get_email_id()}
+                                  headers = {'Message-ID': topic.get_email_id()},
+                                  fail_silently = True
                                   )
 
             return HttpResponseRedirect(post.get_absolute_url())

Modified: trunk/media/css/forum.css
=================================================================
--- trunk/media/css/forum.css	(original)
+++ trunk/media/css/forum.css	Thu May  1 16:59:07 2008
@@ -12,6 +12,11 @@
     text-decoration: none;
     color: #333333;
 }
+
+p {
+    margin: 0px;
+    padding: 0px;
+}
 /*The colors end here */
 
 /* header */
@@ -186,6 +191,7 @@
 }
 div.post_message_text {
     min-height: 160px;
+    padding-bottom: 9px;
     overflow: auto;
 }
 div.post_message_tags {

Modified: trunk/media/js/tinymce/forum.js
=================================================================
--- trunk/media/js/tinymce/forum.js	(original)
+++ trunk/media/js/tinymce/forum.js	Thu May  1 16:59:07 2008
@@ -10,6 +10,9 @@
     browsers : "msie,gecko,opera,safari",
     dialog_type : "modal",
     entity_encoding : "raw",
+    force_br_newlines : true,
+    force_p_newlines : false,
+    forced_root_block : false,
     relative_urls : false,
     convert_urls : false,
     width : "630",


More information about the Oi-commits mailing list