From 803a7425eaff955bd0001b46ee7f22c5d80acb89 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 13 Feb 2012 18:23:03 -0800 Subject: [PATCH] make hr bbtag shareable, stray quote in duepuntozero wall_item --- include/conversation.php | 1 - .../jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js | 2 ++ view/theme/duepuntozero/wall_item.tpl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index b44d4acd6e..4eff0d088b 100755 --- a/include/conversation.php +++ b/include/conversation.php @@ -609,7 +609,6 @@ function conversation(&$a, $items, $mode, $update, $preview = false) { if ($tag!="") $tags[] = bbcode($tag); } - // Build the HTML $body = prepare_body($item,true); diff --git a/library/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js b/library/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js index b8a3abb314..e5f716b297 100755 --- a/library/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +++ b/library/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js @@ -105,6 +105,7 @@ rep(//gi,"[u]"); rep(/]*>/gi,"[quote]"); rep(/<\/blockquote>/gi,"[/quote]"); + rep(/
/gi,"[hr]"); rep(/
/gi,"\n\n"); rep(//gi,"\n\n"); rep(/
/gi,"\n"); @@ -135,6 +136,7 @@ rep(/\[\/i\]/gi,""); rep(/\[u\]/gi,""); rep(/\[\/u\]/gi,""); + rep(/\[hr\]/gi,"
"); rep(/\[bookmark=([^\]]+)\](.*?)\[\/bookmark\]/gi,"$2"); rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); rep(/\[url\](.*?)\[\/url\]/gi,"$1"); diff --git a/view/theme/duepuntozero/wall_item.tpl b/view/theme/duepuntozero/wall_item.tpl index 5d54a1d6a5..a5136eed3a 100755 --- a/view/theme/duepuntozero/wall_item.tpl +++ b/view/theme/duepuntozero/wall_item.tpl @@ -42,7 +42,7 @@ {{ endif }}