Da gibt es wohl eine Lösung: http://ckeditor.com/comment/39960#comment-39960 Werde ich morgen aktivieren.
Ich habe dem CKEDITOR jetzt auch einen File-Manager spendiert: http://sourceforge.net/projects/pdwfilebrowser/.
Dann müssen wir mal ein wenig debuggen.... Ersetze "admin\gm\ckeditor\pdw_file_browser\config.php" mit PHP: <?php/*PDW File Browser v1.3 betaDate: October 19, 2010Url: http://www.neele.nameCopyright (c) 2010 Guido NeeleCopyright (c) 2013 Avenger, entwicklung@powertemplate.deAdapt for CKEDITOR for Gambio GX2 Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.*/error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT);if(!isset($_SESSION)){ session_start();} /* * Uncomment lines below to enable PHP error reporting and displaying PHP errors. * Do not do this on a production server. Might be helpful when debugging why PDW File Browser * does not work as expected. */// error_reporting(E_ALL);// ini_set('display_errors', 1);/** * WARNING: You should do your authorization checking right here. config.php is included * in every file so checking it here is securing the whole plug-in. By not checking for * authorization you are allowing "anyone" to upload and list the files in your server. * You must implement some kind of session validation here. You could do something like... * * if (!(isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'])){ * die("You are not authorized!"); * } * * ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the user logs in to your system.**//* * UPLOAD PATH * * absolute path from root to upload folder (DON'T FORGET SLASHES) * * Example * --------------------------------------- * http://www.domain.com/images/upload/ * $uploadpath = '/images/upload/'; * *///$uploadpath = "/path/to/upload/folder/"; // absolute path from root to upload folder (DON'T FORGET SLASHES)//Avenger//$uploadpath = HTTP_SERVER.DIR_WS_CATALOG.DIR_WS_IMAGES.'original_images/'; // absolute path from root to upload folder (DON'T FORGET SLASHES)$uploadpath = DIR_WS_CATALOG_IMAGES; // absolute path from root to upload folder (DON'T FORGET SLASHES)//$uploadpath = DIR_WS_CATALOG_ORIGINAL_IMAGES; // absolute path from root to upload folder (DON'T FORGET SLASHES)echo __FILE__." -- uploadpath 1='$uploadpath'<br>";if (DIR_WS_CATALOG<>'/' && strpos($uploadpath,DIR_WS_CATALOG)===false){ $uploadpath = DIR_WS_CATALOG.$uploadpath;}echo __FILE__." -- uploadpath 2='$uploadpath'<br>";//Avenger/* * DEFAULT TIMEZONE * * If you use PHP 5 then set default timezone to avoid any date errors. * * Select the timezone you are in. * * Timezones to select from are http://nl3.php.net/manual/en/timezones.php * *///Avengerdate_default_timezone_set('Europe/Berlin');//Avenger/* * VIEW LAYOUT * * Set the default view layout when the file browser is first loaded * * Your options are: 'large_images', 'small_images', 'list', 'content', 'tiles' and 'details' * */$viewLayout = 'large_images';/* * DEFAULT LANGUAGE * * Set default language to load when &language=? is not included in url * * See lang directory for included languages. For now your options are 'en' and 'nl' * But you are free to translate the language files in the /lang/ directory. Copy the * en.php file and translate the lines after the => * *///Avenger//$defaultLanguage = 'en';$defaultLanguage = 'de';//Avenger/* * ALLOWED ACTIONS * * Set an action to FALSE to prevent execution. * Buttons will be removed from UI when an action is set to FALSE. * */$allowedActions = array( 'upload' => TRUE, 'settings' => TRUE, 'cut_paste' => TRUE, 'copy_paste' => TRUE, 'rename' => TRUE, 'delete' => TRUE, 'create_folder' => TRUE); /* * PDW File Browser depends on $_SERVER['DOCUMENT_ROOT'] to resolve path/filenames. This value is usually * correct, but has been known to be broken on some servers. This value allows you to override the default * value. * Do not modify from the auto-detect default value unless you are having problems. *///define('DOCUMENTROOT', '/home/httpd/httpdocs');//define('DOCUMENTROOT', 'c:\\webroot\\example.com\\www');//define('DOCUMENTROOT', $_SERVER['DOCUMENT_ROOT']);//define('DOCUMENTROOT', realpath((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace(DIRECTORY_SEPARATOR, '/', realpath('.')))));define('DOCUMENTROOT', realpath((getenv('DOCUMENT_ROOT') && preg_match('#^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))).'#', realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace(DIRECTORY_SEPARATOR, '/', dirname(__FILE__)))));/* * CUSTOM FILTERS * * If you like to use custom filters then remove "//" to add your own filters. * "name of filter" => ".extension1|.extension2" *///$customFilters = array(// "MS Office Documents (Custom filter)" => ".doc|.docx|.xsl|.xlsx|.ppt|.pptx",// "PDF-Documents (Custom filter)" => ".pdf"//);/* * DEFAULT SKIN * * Take a look inside the /skin/ folder to see which skins are available. If you leave the "//" * then redmond (Windows 7 like) will be the default theme. *///$defaultSkin="mountainview";/* * EDITOR * * Which editor are we dealing with? PDW File Browser can be used with TinyMCE and CKEditor. *///$editor = isset($_GET["editor"]) ? $_GET["editor"] : ''; // If you want to use the file browser for both editors and/or standalone//$editor="tinymce";//Avenger$editor="ckeditor";//Avenger//$editor="standalone";/* * UPLOAD SETTINGS * */// Maximum file size$max_file_size_in_bytes = 1048576; // 1MB in bytes//Avenger$max_file_size_in_bytes*=500; //500 MB//Avenger// Characters allowed in the file name (in a Regular Expression format) $valid_chars_regex = '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-';// Allowed file extensions// Remove an extension if you don't want to allow those files to be uploaded.//$extension_whitelist = "7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip";$extension_whitelist = "asf,avi,bmp,fla,flv,gif,jpeg,jpg,mov,mpeg,mpg,png,tif,tiff,wmv"; // Images, video and flash only//Avenger$extension_whitelist = "pdf,zip,gz,bz,doc,docx,txt";//Avenger/* * RETURN LINKS AS ABSOLUTE OR ABSOLUTE WITHOUT HOSTNAME * * Ex. http://www.example.com/upload/file.jpg instead of /upload/file.jpg */$absolute_url = FALSE; // When FALSE url will be returned absolute without hostname, like /upload/file.jpg.$absolute_url_disabled = FALSE; // When TRUE changing from absolute to relative is not possible.//--------------------------DON'T EDIT BEYOND THIS LINE ----------------------------------define('STARTINGPATH', DOCUMENTROOT . $uploadpath); //DON'T EDIT//Check if upload folder existsif(!@is_dir(STARTINGPATH)) die("Upload folder '$uploadpath' doesn't exist or $uploadpath in config.php is set wrong!");//Check if editor is setif(!isset($editor)) die('The variable $editor in config.php is not set!');// Figure out which language file to loadif(!empty($_REQUEST['language'])) { $language = $_REQUEST['language'];} elseif (isset($_SESSION['ckeditor_filemanager_language'])) { $language = $_SESSION['ckeditor_filemanager_language'];} else { $language = $defaultLanguage;}require_once("lang/".$language.".php");$_SESSION['ckeditor_filemanager_language'] = $language;// Get local settings from language file$datetimeFormat = $lang["datetime format"]; // 24 hours, AM/PM, etc...$dec_seperator = $lang["decimal seperator"]; // character in front of the decimals$thousands_separator = $lang["thousands separator"]; // character between every group of thousands// Check post_max_size (http://us3.php.net/manual/en/features.file-upload.php#73762)function let_to_num($v){ //This function transforms the php.ini notation for numbers (like '2M') to an integer (2*1024*1024 in this case) $l = substr($v, -1); $ret = substr($v, 0, -1); switch(strtoupper($l)){ case 'P': $ret *= 1024; case 'T': $ret *= 1024; case 'G': $ret *= 1024; case 'M': $ret *= 1024; case 'K': $ret *= 1024; break; } return $ret;}$max_upload_size = min(let_to_num(ini_get('post_max_size')), let_to_num(ini_get('upload_max_filesize')));if ($max_file_size_in_bytes > $max_upload_size) { $max_file_size_in_bytes = $max_upload_size;}?>
/www/htdocs/xxxxxxx/yyyyyyyyy/admin/gm/ckeditor/pdw_file_browser/config.php -- uploadpath 1='DIR_WS_CATALOG_IMAGES' /www/htdocs/xxxxxxxx/yyyyyyyy/admin/gm/ckeditor/pdw_file_browser/config.php -- uploadpath 2='DIR_WS_CATALOG_IMAGES' Upload folder 'DIR_WS_CATALOG_IMAGES' doesn't exist or DIR_WS_CATALOG_IMAGES in config.php is set wrong!
Ja, so geht es..... Liegt daran, dass meine Shops etwas anders strukturiert sind.... Probiere mal diese Variante... PHP: <?php/*PDW File Browser v1.3 betaDate: October 19, 2010Url: http://www.neele.nameCopyright (c) 2010 Guido NeeleCopyright (c) 2013 Avenger, entwicklung@powertemplate.deAdapt for CKEDITOR for Gambio GX2 Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.*/error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT);if(!isset($_SESSION)){ session_start();} /* * Uncomment lines below to enable PHP error reporting and displaying PHP errors. * Do not do this on a production server. Might be helpful when debugging why PDW File Browser * does not work as expected. */// error_reporting(E_ALL);// ini_set('display_errors', 1);/** * WARNING: You should do your authorization checking right here. config.php is included * in every file so checking it here is securing the whole plug-in. By not checking for * authorization you are allowing "anyone" to upload and list the files in your server. * You must implement some kind of session validation here. You could do something like... * * if (!(isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'])){ * die("You are not authorized!"); * } * * ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the user logs in to your system.**//* * UPLOAD PATH * * absolute path from root to upload folder (DON'T FORGET SLASHES) * * Example * --------------------------------------- * http://www.domain.com/images/upload/ * $uploadpath = '/images/upload/'; * *///$uploadpath = "/path/to/upload/folder/"; // absolute path from root to upload folder (DON'T FORGET SLASHES)//Avengerif (!defined('DIR_WS_CATALOG')){ $file='../../../includes/configure.php'; //Gambio GX admin/includes/configure.php if (file_exists($file)) { include($file); }}//$uploadpath = HTTP_SERVER.DIR_WS_CATALOG.DIR_WS_IMAGES.'original_images/'; // absolute path from root to upload folder (DON'T FORGET SLASHES)$uploadpath = DIR_WS_CATALOG_IMAGES; // absolute path from root to upload folder (DON'T FORGET SLASHES)//$uploadpath = DIR_WS_CATALOG_ORIGINAL_IMAGES; // absolute path from root to upload folder (DON'T FORGET SLASHES)//echo __FILE__." -- uploadpath 1='$uploadpath'<br>";if (DIR_WS_CATALOG<>'/' && strpos($uploadpath,DIR_WS_CATALOG)===false){ $uploadpath = DIR_WS_CATALOG.$uploadpath;}//echo __FILE__." -- uploadpath 2='$uploadpath'<br>";//Avenger/* * DEFAULT TIMEZONE * * If you use PHP 5 then set default timezone to avoid any date errors. * * Select the timezone you are in. * * Timezones to select from are http://nl3.php.net/manual/en/timezones.php * *///Avengerdate_default_timezone_set('Europe/Berlin');//Avenger/* * VIEW LAYOUT * * Set the default view layout when the file browser is first loaded * * Your options are: 'large_images', 'small_images', 'list', 'content', 'tiles' and 'details' * */$viewLayout = 'large_images';/* * DEFAULT LANGUAGE * * Set default language to load when &language=? is not included in url * * See lang directory for included languages. For now your options are 'en' and 'nl' * But you are free to translate the language files in the /lang/ directory. Copy the * en.php file and translate the lines after the => * *///Avenger//$defaultLanguage = 'en';$defaultLanguage = 'de';//Avenger/* * ALLOWED ACTIONS * * Set an action to FALSE to prevent execution. * Buttons will be removed from UI when an action is set to FALSE. * */$allowedActions = array( 'upload' => TRUE, 'settings' => TRUE, 'cut_paste' => TRUE, 'copy_paste' => TRUE, 'rename' => TRUE, 'delete' => TRUE, 'create_folder' => TRUE); /* * PDW File Browser depends on $_SERVER['DOCUMENT_ROOT'] to resolve path/filenames. This value is usually * correct, but has been known to be broken on some servers. This value allows you to override the default * value. * Do not modify from the auto-detect default value unless you are having problems. *///define('DOCUMENTROOT', '/home/httpd/httpdocs');//define('DOCUMENTROOT', 'c:\\webroot\\example.com\\www');//define('DOCUMENTROOT', $_SERVER['DOCUMENT_ROOT']);//define('DOCUMENTROOT', realpath((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace(DIRECTORY_SEPARATOR, '/', realpath('.')))));define('DOCUMENTROOT', realpath((getenv('DOCUMENT_ROOT') && preg_match('#^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))).'#', realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace(DIRECTORY_SEPARATOR, '/', dirname(__FILE__)))));/* * CUSTOM FILTERS * * If you like to use custom filters then remove "//" to add your own filters. * "name of filter" => ".extension1|.extension2" *///$customFilters = array(// "MS Office Documents (Custom filter)" => ".doc|.docx|.xsl|.xlsx|.ppt|.pptx",// "PDF-Documents (Custom filter)" => ".pdf"//);/* * DEFAULT SKIN * * Take a look inside the /skin/ folder to see which skins are available. If you leave the "//" * then redmond (Windows 7 like) will be the default theme. *///$defaultSkin="mountainview";/* * EDITOR * * Which editor are we dealing with? PDW File Browser can be used with TinyMCE and CKEditor. *///$editor = isset($_GET["editor"]) ? $_GET["editor"] : ''; // If you want to use the file browser for both editors and/or standalone//$editor="tinymce";//Avenger$editor="ckeditor";//Avenger//$editor="standalone";/* * UPLOAD SETTINGS * */// Maximum file size$max_file_size_in_bytes = 1048576; // 1MB in bytes//Avenger$max_file_size_in_bytes*=500; //500 MB//Avenger// Characters allowed in the file name (in a Regular Expression format) $valid_chars_regex = '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-';// Allowed file extensions// Remove an extension if you don't want to allow those files to be uploaded.//$extension_whitelist = "7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip";$extension_whitelist = "asf,avi,bmp,fla,flv,gif,jpeg,jpg,mov,mpeg,mpg,png,tif,tiff,wmv"; // Images, video and flash only//Avenger$extension_whitelist = "pdf,zip,gz,bz,doc,docx,txt";//Avenger/* * RETURN LINKS AS ABSOLUTE OR ABSOLUTE WITHOUT HOSTNAME * * Ex. http://www.example.com/upload/file.jpg instead of /upload/file.jpg */$absolute_url = FALSE; // When FALSE url will be returned absolute without hostname, like /upload/file.jpg.$absolute_url_disabled = FALSE; // When TRUE changing from absolute to relative is not possible.//--------------------------DON'T EDIT BEYOND THIS LINE ----------------------------------define('STARTINGPATH', DOCUMENTROOT . $uploadpath); //DON'T EDIT//Check if upload folder existsif(!@is_dir(STARTINGPATH)) die("Upload folder '$uploadpath' doesn't exist or $uploadpath in config.php is set wrong!");//Check if editor is setif(!isset($editor)) die('The variable $editor in config.php is not set!');// Figure out which language file to loadif(!empty($_REQUEST['language'])) { $language = $_REQUEST['language'];} elseif (isset($_SESSION['ckeditor_filemanager_language'])) { $language = $_SESSION['ckeditor_filemanager_language'];} else { $language = $defaultLanguage;}require_once("lang/".$language.".php");$_SESSION['ckeditor_filemanager_language'] = $language;// Get local settings from language file$datetimeFormat = $lang["datetime format"]; // 24 hours, AM/PM, etc...$dec_seperator = $lang["decimal seperator"]; // character in front of the decimals$thousands_separator = $lang["thousands separator"]; // character between every group of thousands// Check post_max_size (http://us3.php.net/manual/en/features.file-upload.php#73762)function let_to_num($v){ //This function transforms the php.ini notation for numbers (like '2M') to an integer (2*1024*1024 in this case) $l = substr($v, -1); $ret = substr($v, 0, -1); switch(strtoupper($l)){ case 'P': $ret *= 1024; case 'T': $ret *= 1024; case 'G': $ret *= 1024; case 'M': $ret *= 1024; case 'K': $ret *= 1024; break; } return $ret;}$max_upload_size = min(let_to_num(ini_get('post_max_size')), let_to_num(ini_get('upload_max_filesize')));if ($max_file_size_in_bytes > $max_upload_size) { $max_file_size_in_bytes = $max_upload_size;}?>
Ich habe die aktuelle Version in http://www.gambio-forum.de/threads/11963-CKEDITOR-Integration?p=92584&viewfull=1#post92584 beigefügt.
Jo, guckst Du hier: http://www.gambio-forum.de/threads/11963-CKEDITOR-Integration?p=92590&viewfull=1#post92590
habe das Teil jetzt im Testshop integriert und gefällt mir sehr gut. habe nur das Problem dass die Texte Artikelbeschreibung "weg" sind, da wo sie nicht in einem TAB waren
Das sollte eigentlich überhaupt keinen Einfluss haben.... Kannst Du mal das HTML einer solche Artikelbeschreibung posten?
Guckst Du hier : HTML: <h2><span style="color: rgb(128, 128, 128); "><span style="font-family: Verdana; "> AK47 HOLZLEGE BAMBOO</span></span></h2> <br /> <span style="color: rgb(128, 128, 128); "><span style="font-size: small; "><span style="font-family: Verdana; ">BAMBOO besteht aus einer lackierten Stahl-Bodenplatte und speziell gehärteten Rundstangen - visuell erscheint BAMBOO dadurch flexibel und leicht. Seine Struktur ist nicht statisch, sie verwandelt und biegt sich durch das aufgelegte Scheitholz und nimmt immer eine andere Gestalt an.<br /> <br /> <br /> <strong>Beschreibung:</strong> <ul> <li>Made in Italy von AK47</li> <li>Stahlplatte mit Stahlstangen</li> <li>B/H/T: 45/170/45 cm</li> <li>max. empfohlene Höhe Holz: 110 cm, max. Holzgewicht 50 kg</li> <li>Gewicht: 19,00 kg</li> </ul> <br /> <strong>Über den Hersteller AK47</strong><br /> <br /> Ak47 ist das Identifizierungszeichen des Maschinengewehrs entworfen 1947 von Michail Kalašnikov.<br /> Die Wahl dieses Namens ist bewusst provokant. <br /> Die kreativen Künstler an Ak47 entwerfen Produkte, die sich einfügen, innovativ, wirksam und effizient sind. Die Intuition von Ak47 ist es zu designen und zu produzieren Möbel-Accessoires welche das Offensichtliche zeigen, wobei aber neue Fragen entstehen.<br /> <br /> </span></span></span><br /> <br /> hat keine TABS............
Das liegt wohl am TAB-Handling von Gambio.... Die Beschreibung ist nur über die Änderungsfunktion des TAB-Bereichs zugänglich.....
habe ich mir schon gedacht. Habe ja nicht zum 1. Mal Ärger mit Artikelbeschreibungen, wo kein TAB vorhanden ist