fix tiny_mce bbcode embed preview
This commit is contained in:
parent
ef64c5187d
commit
453a0cff38
1 changed files with 2 additions and 3 deletions
|
@ -65,7 +65,7 @@
|
||||||
});
|
});
|
||||||
return match;
|
return match;
|
||||||
}
|
}
|
||||||
s = s.replace(/<span class=\"oembed\">(.*?)<\/span>/gi, _h2b_cb);
|
s = s.replace(/<span class=\"oembed(.*?)<\/span>/gi, _h2b_cb);
|
||||||
/* /oembed */
|
/* /oembed */
|
||||||
|
|
||||||
|
|
||||||
|
@ -129,8 +129,7 @@
|
||||||
rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"<blockquote>$1</blockquote>");
|
rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"<blockquote>$1</blockquote>");
|
||||||
|
|
||||||
/* oembed */
|
/* oembed */
|
||||||
function _b2h_cb(match) {
|
function _b2h_cb(match, url) {
|
||||||
url = match.replace(/\[\/*embed\]/gi, "")
|
|
||||||
url = bin2hex(url);
|
url = bin2hex(url);
|
||||||
function s_b2h(data) {
|
function s_b2h(data) {
|
||||||
match = data;
|
match = data;
|
||||||
|
|
Loading…
Reference in a new issue