I installed the TinyMCE editor with filemanager.
The Tiny editor works 100%. I'm able to set text bold, italic etc.
The ImageManager is working also.
But when i choose a picture from the imagemanager, i see the tumbnail, nothing wrong here.
I place the image at the spot where i want it to be in my article, and the image is still visable.
Now i save the article, clean my cache (just in case) and went to the frontend of my website.
But there is no image shown in the article. Just a broken image with a red cross in it.
This is the code in the tinymce.php wich is located in the plugin directory
<!-- tinyMCE -->
<script language="javascript" type="text/javascript" src="./plugins/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="./plugins/tinymce/imagemanager/jscripts/mcimagemanager.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
width : "390",
height : "350",
language : "nl",
plugins : "table,save,advhr,advimage,advlink,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen",
theme_advanced_buttons1_add_ : "fontselect,fontsizeselect",
theme_advanced_buttons2_add_before : "save,newdocument",
theme_advanced_buttons3 : "forecolor,backcolor,flash,advhr,cut,copy,paste,preview",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
plugin_insertdate_dateFormat : "%m-%d-%Y",
plugin_insertdate_timeFormat : "%H:%M",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
file_browser_callback : "mcImageManager.filebrowserCallBack"
});
mcImageManager.init({
language : "nl",
relative_urls : false,
remember_last_path : false
});
</script>
<!-- /tinyMCE -->
<? } ?>
The stucture of the root looks like this:
The setting in the config.php file of ImageManager is set to:
// General options
$mcImageManagerConfig['general.demo'] = false;
$mcImageManagerConfig['general.demo_msg'] = "This application is running in demostration mode, this action is restricted.";
$mcImageManagerConfig['general.theme'] = "default";
$mcImageManagerConfig['general.toolbar'] = "createdir,upload,refresh";
$mcImageManagerConfig['general.user_friendly_paths'] = true;
$mcImageManagerConfig['general.disabled_tools'] = "";
$mcImageManagerConfig['general.login_page'] = "login.php";
$mcImageManagerConfig['general.language'] = "nl"; // en, sv
$mcImageManagerConfig['general.allow_override'] = "*";
// Preview options
$mcImageManagerConfig['preview'] = true;
$mcImageManagerConfig['preview.wwwroot'] = "";
$mcImageManagerConfig['preview.urlprefix'] = "http://" . $_SERVER['HTTP_HOST'] . "/";
$mcImageManagerConfig['preview.urlsuffix'] = "";
$mcImageManagerConfig['preview.allow_override'] = "*";
// Create directory options
$mcImageManagerConfig['createdir.include_directory_pattern'] = '';
$mcImageManagerConfig['createdir.exclude_directory_pattern'] = '/[^a-z0-9_]/';
$mcImageManagerConfig['createdir.invalid_directory_name_msg'] = "Error: The name of the directory is invalid.";
$mcImageManagerConfig['createdir.allow_override'] = "*";
// General filesystem options
$mcImageManagerConfig['filesystem'] = "LocalFileImpl";
$mcImageManagerConfig['filesystem.path'] = "../../../../cms/data/upimages/";
$mcImageManagerConfig['filesystem.rootpath'] = "../../../../cms/data/upimages/";
Am i doing something wrong here? Just can't set the path, or whatever might be changed.
Maybe someone recoqnize this problem? I also serached on the TinyMCE forum, but it seems i'm the only one having this problem.
Or is there a better/other way to organize and add my images in articles with TinyMCE?
I saw ibrowser is there, but i can't get it work with cn.ru and tinymce.
Thanks.