more tinyMCE consistency changes - height: 300px, width: 580px, toolbars at the top like later releases, manually resized text windows are not saved - tinyMCE 4 init cleanup
more tinyMCE consistency changes - height: 300px, width: 580px, toolbars at the top like later releases, manually resized text windows are not saved - tinyMCE 4 init cleanup

--- a/tinymce/2/init.php
+++ b/tinymce/2/init.php
@@ -13,7 +13,8 @@
 			echo "
 	tinyMCE.init({ 
 		theme: 'advanced',
-		height: '250',
+		height: '300',
+		width: '580',
 		language: '$language',
 		convert_urls: 'false',
 		mode: 'textareas',
@@ -24,8 +25,9 @@
 		theme_advanced_buttons3_add_before: 'tablecontrols,separator',
 		theme_advanced_buttons3_add: 'advhr',
 		theme_advanced_toolbar_align: 'center',
-		theme_advanced_toolbar_location: 'bottom',
+		theme_advanced_toolbar_location: 'top',
 		theme_advanced_statusbar_location: 'bottom',
+		theme_advanced_resizing_use_cookie: false,
 		theme_advanced_path: 'false',
 		editor_deselector: 'mceNoEditor',
 ";

--- a/tinymce/3/init.php
+++ b/tinymce/3/init.php
@@ -13,7 +13,8 @@
 			echo "
 	tinyMCE.init({ 
 		theme: 'advanced',
-		height: '250',
+		height: '300',
+		width: '580',
 		language: '$language',
 		convert_urls: 'false',
 		mode: 'textareas',
@@ -24,8 +25,9 @@
 		theme_advanced_buttons3_add_before: 'tablecontrols,separator',
 		theme_advanced_buttons3_add: 'advhr',
 		theme_advanced_toolbar_align: 'center',
-		theme_advanced_toolbar_location: 'bottom',
+		theme_advanced_toolbar_location: 'top',
 		theme_advanced_statusbar_location: 'bottom',
+		theme_advanced_resizing_use_cookie: false,
 		theme_advanced_path: 'false',
 		editor_deselector: 'mceNoEditor',
 ";

--- a/tinymce/4/init.php
+++ b/tinymce/4/init.php
@@ -1,11 +1,11 @@
 <?php
-$image_list_path = STORIESPATH . "/" . USERUID . "../images/imagelist.js";
+$image_list_path = STORIESPATH . "/" . USERUID . "/images/imagelist.js";
 $image_list_exists = file_exists($image_list_path); 
  
 if (USERUID && $image_list_exists)
 {
 echo "
-<script src='".STORIESPATH . "/" . USERUID . "../images/imagelist.js"."'></script>";
+<script src='".STORIESPATH . "/" . USERUID . "/images/imagelist.js"."'></script>";
 } 
 echo "
 	<script language=\"javascript\" type=\"text/javascript\"><!--";
@@ -30,8 +30,8 @@
 		invalid_styles: 'color,font-size,margin,line-height,font-family,margin-top,margin-bottom',
 		plugins: 'wordcount emoticons fullscreen anchor code hr image link paste ',
 		skin: 'lightgray',
-		min_height: 250,
-		width: 440,
+		height: 300,
+		width: 580,
 	    browser_spellcheck: true,
 		relative_urls: false,
 		remove_script_host: false,
@@ -53,7 +53,7 @@
 		echo "
 		theme_modern_resizing: true,".($current == "adminarea" ? "\n\t\tentity_encoding: 'raw'" : "\n\t\tinvalid_elements: 'script,object,applet,iframe'")."
    });
-	
+
 ";
 	}
 	echo "
@@ -63,22 +63,9 @@
 
 		if (tinyMCE.get(id) == null)
 		tinymce.EditorManager.execCommand('mceAddEditor',true, id);
-		//tinyMCE.execCommand('mceAddControl', false, id);
 		else
 		tinymce.EditorManager.execCommand('mceRemoveEditor', true, id);
-		//	tinyMCE.execCommand('mceRemoveControl', false, id);
 	}
 ";
-/*echo "
-var tinyMCEmode = true;
-	function toogleEditorMode(id) {
-		var elm = document.getElementById(id);
-
-		if (tinyMCE.get(id) == null)
-			tinyMCE.execCommand('mceAddControl', false, id);
-		else
-			tinyMCE.execCommand('mceRemoveControl', false, id);
-	}
-";*/
 echo " --></script>";