TinyMCE
TinyMCE
Hallo zusammen,
endlich habe ich mal ein CMS gefunden das wirklich einfach zu bedienen ist. Leider habe ich nun das Problem, das ich mit TinyMCE in den Content keine Bilder einbinden kann.
Das CMS läuft derzeit unter XAMPP in der neusten Version als localhost. Die Bilder die in den Kontent eingebunden werden sollen liegen im Verzeichnis ./uploades/images.
Habe nun alle möglichen Pfadangaben auf die Bilder durch. Nur kein Bild kommt da zum vorschein. Wenn ich den Platzhalter der Grafik anklicke und wieder auf das Image-Symbol gehe soll man ja die Werte der Grafikdatei ändern können.
Und hier liegt das Problem! Die Maske zeigt als Pfad/ Imageangebae total was anderes: ../../../../undefined/http://localhost.
Wie diese Pfadangabe zustande kommt ist mir momentan unerklärlich.
Das CMS läuft als Standartinstallation, ohne das irgendwo was rumgefingert wurde. Kann da jemand helfen und hat einen Tip woran das liegen mag?
Gruß
eprom3000
endlich habe ich mal ein CMS gefunden das wirklich einfach zu bedienen ist. Leider habe ich nun das Problem, das ich mit TinyMCE in den Content keine Bilder einbinden kann.
Das CMS läuft derzeit unter XAMPP in der neusten Version als localhost. Die Bilder die in den Kontent eingebunden werden sollen liegen im Verzeichnis ./uploades/images.
Habe nun alle möglichen Pfadangaben auf die Bilder durch. Nur kein Bild kommt da zum vorschein. Wenn ich den Platzhalter der Grafik anklicke und wieder auf das Image-Symbol gehe soll man ja die Werte der Grafikdatei ändern können.
Und hier liegt das Problem! Die Maske zeigt als Pfad/ Imageangebae total was anderes: ../../../../undefined/http://localhost.
Wie diese Pfadangabe zustande kommt ist mir momentan unerklärlich.
Das CMS läuft als Standartinstallation, ohne das irgendwo was rumgefingert wurde. Kann da jemand helfen und hat einen Tip woran das liegen mag?
Gruß
eprom3000
Re: TinyMCE
Lokal arbeite ich auch mit XAMPP und hab keine Problemeeprom3000 wrote: ../../../../undefined/http://localhost.
^^^^^^

Hast Du schon mal die Einträge in der config.php überprüft ?
Dort sollten bezüglich der Imagepfade im Normalfall so etwas ähnliches wie
Code: Select all
$config['image_uploads_path'] = 'C:\\Programme\\xampp\\htdocs\\cms011b2/uploads/images';
$config['image_uploads_url'] = 'http://localhost/cms011b2/uploads/images';
Re: TinyMCE
To continue in English 
If I try to insert an image in the content, the image browser from TinyMCE point to the images/ directory while FCKeditor points to the uploads/ one. Config.php shows:
That means moving all images to another directory
Is there a way to have TinyMCE pointing to another directory? (BTW, I don't want to go back to FCKeditor, see discussion else in the form...)

If I try to insert an image in the content, the image browser from TinyMCE point to the images/ directory while FCKeditor points to the uploads/ one. Config.php shows:
Code: Select all
$config['previews_path'] = '/home/httpd/vhosts/uisge-beatha.eu/httpdocs/tmp/cache';
$config['uploads_path'] = '/home/httpd/vhosts/uisge-beatha.eu/httpdocs/uploads';
$config['uploads_url'] = 'http://www.uisge-beatha.eu/uploads';

Re: TinyMCE
Das ist wahrscheinlich gar nicht so unerklärlich - ist ein bekannter Bug in der aktuellsten Version. Wenn es nicht noch weitere Probleme gibt, dann sollte die SVN version deine Probleme lösen. Wäre mir sehr gedient, wenn du diese ausprobieren könntest. Oder einfacher, ersetze die Dateieprom3000 wrote:
Das CMS läuft derzeit unter XAMPP in der neusten Version als localhost. Die Bilder die in den Kontent eingebunden werden sollen liegen im Verzeichnis ./uploades/images.
Habe nun alle möglichen Pfadangaben auf die Bilder durch. Nur kein Bild kommt da zum vorschein. Wenn ich den Platzhalter der Grafik anklicke und wieder auf das Image-Symbol gehe soll man ja die Werte der Grafikdatei ändern können.
Und hier liegt das Problem! Die Maske zeigt als Pfad/ Imageangebae total was anderes: ../../../../undefined/http://localhost.
Wie diese Pfadangabe zustande kommt ist mir momentan unerklärlich.
Code: Select all
trunk/tinymce/jscripts/tiny_mce/plugins/simplebrowser/connectors/php/config.php
Code: Select all
http://viewsvn.cmsmadesimple.org/viewsvn/*checkout*/trunk/tinymce/jscripts/tiny_mce/plugins/simplebrowser/connectors/php/config.php?content-type=text%2Fplain&rev=29&root=tinymce
Re: TinyMCE
In my opinion only TinyMCE does it rightGregor wrote: If I try to insert an image in the content, the image browser from TinyMCE point to the images/ directory while FCKeditor points to the uploads/ one.

Take another look to config.phpThat means moving all images to another directoryIs there a way to have TinyMCE pointing to another directory?
Code: Select all
$config['image_uploads_path'] = 'C:\\Programme\\xampp\\xampp\\htdocs\\cms0121/uploads/images';
$config['image_uploads_url'] = 'http://localhost/cms0121/uploads/images';
Re: TinyMCE
Thanks Cyberman.
Reading my comment, I see I meant uploads/images/ instead of uploads/
I have my pictures on the server instead of on my pc. Have changed config.php to:
It still goes to images/ instead of uploads/images/
Reading my comment, I see I meant uploads/images/ instead of uploads/
I have my pictures on the server instead of on my pc. Have changed config.php to:
Code: Select all
$config['image_uploads_path'] = '/home/httpd/vhosts/uisge-beatha.eu/httpdocs/uploads/images';
$config['image_uploads_url'] = 'http://www.uisge-beatha.eu/uploads/images';
Last edited by Gregor on Thu May 11, 2006 8:46 am, edited 1 time in total.
Re: TinyMCE
If you wanna use only /uploads directory for all files change these values to /uploadsGregor wrote: It still goes to images/ instead of uploads/images/

Re: TinyMCE
I've changed the config.php file. When asking the properties of a picture, I click browse, a new windws opens called FKCeditor - Resource Browser. FKCeditor is not installed (says the module manager). Resource type is 'image' and the directory 'Images/' is shown.
I assume that the full path in the variables is required.
I assume that the full path in the variables is required.
Re: TinyMCE
Hmm, perhaps there's a path inside TinyMCE installation too
... don't know.
Current TinyMCE uses the file browser from FCK.
Have you cleared your system cache ? It should be done every time you change something in config.php.

Current TinyMCE uses the file browser from FCK.
Have you cleared your system cache ? It should be done every time you change something in config.php.
Re: TinyMCE
Thanks for the tip. Cleard all caches, still no luck.
Also installed FCKeditor and set tinyMCE as default editor, but does not make any difference. SO, this does leave one big question mark...
Also installed FCKeditor and set tinyMCE as default editor, but does not make any difference. SO, this does leave one big question mark...
Re: TinyMCE
Version 2.0.1
If you want, I can give entrance to my cms. In that case, please post a private e-mail.
If you want, I can give entrance to my cms. In that case, please post a private e-mail.
Re: TinyMCE
There is a bug in version 2.0.1 in the filebrowser plugin. Have you replacedGregor wrote: Version 2.0.1
If you want, I can give entrance to my cms. In that case, please post a private e-mail.
Code: Select all
trunk/tinymce/jscripts/tiny_mce/plugins/simplebrowser/connectors/php/config.php
Code: Select all
http://viewsvn.cmsmadesimple.org/viewsvn/*checkout*/trunk/tinymce/jscripts/tiny_mce/plugins/simplebrowser/connectors/php/config.php?content-type=text%2Fplain&rev=29&root=tinymce
Re: TinyMCE
I installed TinyMCE yesterday evening. I have not replaced any file. The content of my config.php deep inside the TinyMCE directory is:
Code: Select all
<?php
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: config.php
* Configuration file for the File Manager Connector for PHP.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
*/
global $Config ;
// SECURITY: You must explicitelly enable this "connector". (Set it to "true").
$Config['Enabled'] = true ;
// Path to user files relative to the document root.
// $Config['UserFilesPath'] = 'uploads/' ;
$Config['UserFilesPath'] = str_replace($config["root_url"].'/', '', $config["uploads_url"])."/";
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
// $Config['UserFilesAbsolutePath'] = '' ;
$Config['UserFilesAbsolutePath'] = $config['uploads_path'];
$Config['AllowedExtensions']['File'] = array() ;
$Config['DeniedExtensions']['File'] = array('php','php3','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ;
$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['Image'] = array() ;
$Config['AllowedExtensions']['images'] = array('jpg','gif','jpeg','png') ;
$Config['DeniedExtensions']['images'] = array() ;
$Config['AllowedExtensions']['Flash'] = array('swf','fla') ;
$Config['DeniedExtensions']['Flash'] = array() ;
$Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;
$Config['DeniedExtensions']['Media'] = array() ;
$cfgfilename = '../config.php';
while(!@file_exists($cfgfilename)){
$cfgfilename = "../".$cfgfilename;
}
@include($cfgfilename);
// $Config['UserFilesPath'] = $config['uploads_url'];
// $Config['UserFilesPath'] = str_replace( 'http://', '', $Config['UserFilesPath'] );
// $Config['UserFilesPath'] = substr($Config['UserFilesPath'], strpos($Config['UserFilesPath'], "/"));
// $Config['UserFilesPath'] = $Config['UserFilesPath']."/" ;
// $diff = str_replace($config["root_url"].'/', '', $config["uploads_url"])."/";
?>
Re: TinyMCE
Please try to replace the file which fractal called ...
Last edited by cyberman on Fri May 12, 2006 6:35 am, edited 1 time in total.