fix tiny_mce bbcode embed preview

This commit is contained in:
fabrixxm
2011-05-22 23:07:27 +02:00
committed by Fabio Comuni
parent ef64c5187d
commit 453a0cff38

View 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 */
@@ -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;