From: fabrixxm Date: Sun, 22 May 2011 21:07:27 +0000 (+0200) Subject: fix tiny_mce bbcode embed preview X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=453a0cff3875ca1cb3587b1fa83ad5b0439faae3;p=friendica.git fix tiny_mce bbcode embed preview --- diff --git a/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js b/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js index 997bc54fa0..db676cd908 100644 --- a/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js +++ b/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js @@ -65,7 +65,7 @@ }); return match; } - s = s.replace(/(.*?)<\/span>/gi, _h2b_cb); + s = s.replace(//gi, _h2b_cb); /* /oembed */ @@ -129,8 +129,7 @@ rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"
$1
"); /* oembed */ - function _b2h_cb(match) { - url = match.replace(/\[\/*embed\]/gi, "") + function _b2h_cb(match, url) { url = bin2hex(url); function s_b2h(data) { match = data;