]> git.mxchange.org Git - friendica.git/commitdiff
translate br with extra elements
authorfriendica <info@friendica.com>
Mon, 26 Mar 2012 23:56:44 +0000 (16:56 -0700)
committerfriendica <info@friendica.com>
Mon, 26 Mar 2012 23:56:44 +0000 (16:56 -0700)
library/mcefixes/plugins.bbcode.editor_plugin_src.js
library/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js

index 183f2bc68d3e155a05b7c2e43ec9246738f05fa7..a2829a21c1cd12474a3bd9a4d433608746a702d4 100755 (executable)
                        rep(/<blockquote[^>]*>/gi,"[quote]");\r
                        rep(/<\/blockquote>/gi,"[/quote]");\r
                        rep(/<hr \/>/gi,"[hr]");\r
-                       rep(/<br \/>/gi,"\n\n");\r
+                       rep(/<br (.*?)\/>/gi,"\n\n");\r
                        rep(/<br\/>/gi,"\n\n");\r
                        rep(/<br>/gi,"\n");\r
                        rep(/<p>/gi,"");\r
index 183f2bc68d3e155a05b7c2e43ec9246738f05fa7..a2829a21c1cd12474a3bd9a4d433608746a702d4 100644 (file)
                        rep(/<blockquote[^>]*>/gi,"[quote]");\r
                        rep(/<\/blockquote>/gi,"[/quote]");\r
                        rep(/<hr \/>/gi,"[hr]");\r
-                       rep(/<br \/>/gi,"\n\n");\r
+                       rep(/<br (.*?)\/>/gi,"\n\n");\r
                        rep(/<br\/>/gi,"\n\n");\r
                        rep(/<br>/gi,"\n");\r
                        rep(/<p>/gi,"");\r