]> git.mxchange.org Git - friendica.git/commitdiff
fix tiny_mce bbcode embed preview
authorfabrixxm <fabrix.xm@gmail.com>
Sun, 22 May 2011 21:07:27 +0000 (23:07 +0200)
committerFabio Comuni <fabrix.xm@gmail.com>
Mon, 23 May 2011 07:14:57 +0000 (09:14 +0200)
tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js

index 997bc54fa0a76ae53096e417afc60ae1b7d6967a..db676cd908d75c25e0de3d9662d7b80f2db388d3 100644 (file)
@@ -65,7 +65,7 @@
                                });
                                return match;
                        }
-                       s = s.replace(/<span class=\"oembed\">(.*?)<\/span>/gi, _h2b_cb);
+                       s = s.replace(/<span class=\"oembed(.*?)<\/span>/gi, _h2b_cb);
                        /* /oembed */
 
 \r
                        rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"<blockquote>$1</blockquote>");\r
 
                        /* oembed */
-                       function _b2h_cb(match) {
-                               url = match.replace(/\[\/*embed\]/gi, "")
+                       function _b2h_cb(match, url) {
                                url = bin2hex(url);
                                function s_b2h(data) {
                                                match = data;