diff --git a/e107_plugins/tinymce/plugins/e107bbcode/parser.php b/e107_plugins/tinymce/plugins/e107bbcode/parser.php
index af57c64e8..1eaf6c6fa 100644
--- a/e107_plugins/tinymce/plugins/e107bbcode/parser.php
+++ b/e107_plugins/tinymce/plugins/e107bbcode/parser.php
@@ -32,25 +32,23 @@ if($_POST['mode'] == 'tohtml')
// $content = e107::getBB()->htmltoBBcode($content); //XXX This breaks inserted images from media-manager. :/
e107::getBB()->setClass($_SESSION['media_category']);
-
- if(check_class($pref['post_html'])) // raw HTML within [html] tags.
+
+ if(check_class($pref['post_html'])) // raw HTML within [html] tags.
{
- // Quick and dirty.
- if(strstr($content,"[img]") || strstr($content, "[b]") || strstr($content, "[link") || strstr($content, "[youtube")) // BC - convert old BB code text to html.
+
+ if(strstr($content,"[html]") === false) // BC - convert old BB code text to html.
{
e107::getBB()->clearClass();
$content = str_replace('\r\n'," ",$content);
- $content = nl2br($content, true);
+ $content = nl2br($content, true); // replace any that were missed.
$content = $tp->toHtml($content, true);
}
-
- $content = str_replace("{e_BASE}","",$content); // We want {e_BASE} in the final data going to the DB, but not the editor.
-
- $srch = array("","","[html]","[/html]");
- $content = str_replace($srch,"",$content);
- $content = e107::getBB()->parseBBCodes($content); // parse the tag so we see the HTML equivalent while editing!
+ $content = str_replace("{e_BASE}","",$content); // We want {e_BASE} in the final data going to the DB, but not the editor.
+ $srch = array("","","[html]","[/html]");
+ $content = str_replace($srch,"",$content);
+ $content = e107::getBB()->parseBBCodes($content); // parse the tag so we see the HTML equivalent while editing!
echo $content;
}
else // bbcode Mode.
diff --git a/e107_plugins/tinymce/plugins/youtube/youtube.php b/e107_plugins/tinymce/plugins/youtube/youtube.php
index d68f20722..177e21038 100644
--- a/e107_plugins/tinymce/plugins/youtube/youtube.php
+++ b/e107_plugins/tinymce/plugins/youtube/youtube.php
@@ -12,7 +12,7 @@ e107::css('inline',"
.sizeblock { display:inline-block; width: 180px; margin:6px; font-size:14px}
input[type='radio'] { vertical-align: middle; padding-right:10px; }
.e-footer-info { color: silver }
- body { background-color: #EEEEEE }
+
label { vertical-align:middle; line-height:12px}
");
@@ -68,7 +68,7 @@ $(document).ready(function()
}
- var html = '';
+ var html = '';
tinyMCEPopup.editor.execCommand('mceInsertContent', false, html);
tinyMCEPopup.close();