add support for later tinyMCE image list handling
add support for later tinyMCE image list handling

--- a/tinymce/4/init.php
+++ b/tinymce/4/init.php
@@ -49,7 +49,7 @@
 			tools: { title: 'Tools', items: '' }
     	},";
 		if (USERUID && $image_list_exists)
-			echo "	image_list: tinyMCE4ImageList ,";
+			echo "	image_list: tinyMCENewImageList ,";
 		echo "
 		theme_modern_resizing: true,".($current == "adminarea" ? "\n\t\tentity_encoding: 'raw'" : "\n\t\tinvalid_elements: 'script,object,applet,iframe'")."
    });

--- a/tinymce/5/init.php
+++ b/tinymce/5/init.php
@@ -51,7 +51,7 @@
 			tools: { title: 'Tools', items: '' }
     	},";
 		if (USERUID && $image_list_exists)
-			echo "	image_list: tinyMCE5ImageList ,";
+			echo "	image_list: tinyMCENewImageList ,";
 		echo "
 		theme_silver_resizing: true,".($current == "adminarea" ? "\n\t\tentity_encoding: 'raw'" : "\n\t\tinvalid_elements: 'script,object,applet,iframe'")."
    });

--- a/tinymce/6/init.php
+++ b/tinymce/6/init.php
@@ -49,7 +49,7 @@
 			tools: { title: 'Tools', items: '' }
     	},";
 		if (USERUID && $image_list_exists)
-			echo "	image_list: tinyMCE6ImageList ,";
+			echo "	image_list: tinyMCENewImageList ,";
 		echo "
 		theme_silver_resizing: true,".($current == "adminarea" ? "\n\t\tentity_encoding: 'raw'" : "\n\t\tinvalid_elements: 'script,object,applet,iframe'")."
    });

--- a/user/manageimages.php
+++ b/user/manageimages.php
@@ -33,7 +33,7 @@
 				$path =  STORIESPATH . "/" . USERUID . "/images/".$file;
 				$image_files[] = "[\"" . STORIESPATH . "/" . USERUID . "/images/$file\", \"" . STORIESPATH . "/" . USERUID . "/images/$file\"]";
 
-				$image4_files[] = '{ "title": "'. $file. '", "value": "'.$path.'" }';
+				$image_new_files[] = '{ "title": "'. $file. '", "value": "'.$path.'" }';
 		 
 			}
 		}
@@ -44,8 +44,8 @@
 			$text .= ");\n\n";
 			fwrite($handle, $text);
 
-			$text = "var tinyMCE4ImageList = [\n";
-			$text .= implode(", \n", $image4_files);
+			$text = "var tinyMCENewImageList = [\n";
+			$text .= implode(", \n", $image_new_files);
 			$text .= "];\n\n";
 			fwrite($handle, $text);