diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2011-05-22 23:07:27 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-05-23 09:14:57 +0200 |
commit | 453a0cff3875ca1cb3587b1fa83ad5b0439faae3 (patch) | |
tree | 600781c526551fd828963002835240f9a4f9f910 /tinymce | |
parent | ef64c5187df80da2065655726b8d05a9ce6b0e0a (diff) | |
download | volse-hubzilla-453a0cff3875ca1cb3587b1fa83ad5b0439faae3.tar.gz volse-hubzilla-453a0cff3875ca1cb3587b1fa83ad5b0439faae3.tar.bz2 volse-hubzilla-453a0cff3875ca1cb3587b1fa83ad5b0439faae3.zip |
fix tiny_mce bbcode embed preview
Diffstat (limited to 'tinymce')
-rw-r--r-- | tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js | 5 |
1 files changed, 2 insertions, 3 deletions
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 997bc54fa..db676cd90 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 class=\"oembed\">(.*?)<\/span>/gi, _h2b_cb); + s = s.replace(/<span class=\"oembed(.*?)<\/span>/gi, _h2b_cb); /* /oembed */ @@ -129,8 +129,7 @@ rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"<blockquote>$1</blockquote>");
/* oembed */ - function _b2h_cb(match) { - url = match.replace(/\[\/*embed\]/gi, "") + function _b2h_cb(match, url) { url = bin2hex(url); function s_b2h(data) { match = data; |