CKEDITOR et KCFINDER dans l'espace client [Résolu] |
Bienvenue invité ( Connexion | Inscription )
CKEDITOR et KCFINDER dans l'espace client [Résolu] |
28 Apr 2014, 09:34
Message
#1
|
|
Ceinture jaune+ OSC Groupe : Membres Messages : 124 Inscrit : 7-November 07 Lieu : Lyon Membre no 19668 |
Bonjour,
J'ai installé cette contribution http://addons.oscommerce.com/info/7650 dans account_edit.php et je suis confronté à 2 problèmes :
Voici les sources : includes/functions/html_output.php Code $field = '<textarea name="' . tep_output_string($name) . '" id="' . tep_output_string($name) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; includes/template_top.php Code <?php if (!defined('USE_CKEDITOR_ADMIN_TEXTAREA')) { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, set_function) values ('', 'Use CKEditor', 'USE_CKEDITOR_ADMIN_TEXTAREA','true','Use CKEditor for WYSIWYG editing of textarea fields in admin',1,99,now(),'tep_cfg_select_option(array(\'true\', \'false\'),' )"); define ('USE_CKEDITOR_ADMIN_TEXTAREA','true'); } if (USE_CKEDITOR_ADMIN_TEXTAREA == "true") { ?> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/ckeditor.js'); ?>"></script> <script type="text/javascript" src="<?php echo tep_href_link('ext/ckeditor/adapters/jquery.js'); ?>"></script> <script type="text/javascript"> $(function() { var $editors = $('textarea'); if ($editors.length) { $editors.each(function() { var editorID = $(this).attr("id"); var instance = CKEDITOR.instances[editorID]; if (instance) { CKEDITOR.remove(instance); } CKEDITOR.replace(editorID); }); } }); </script> <?php } ?> ext/ckeditor/config.js Code CKEDITOR.editorConfig = function( config ) { config.filebrowserBrowseUrl = 'http://www.monsite.fr/ext/kcfinder/browse.php?opener=ckeditor&type=files'; config.filebrowserImageBrowseUrl = 'http://www.monsite.fr/ext/kcfinder/browse.php?opener=ckeditor&type=images'; config.filebrowserFlashBrowseUrl = 'http://www.monsite.fr/ext/kcfinder/browse.php?opener=ckeditor&type=flash'; config.filebrowserUploadUrl = 'http://www.monsite.fr/ext/kcfinder/upload.php?opener=ckeditor&type=files'; config.filebrowserImageUploadUrl = 'http://www.monsite.fr/ext/kcfinder/upload.php?opener=ckeditor&type=images'; config.filebrowserFlashUploadUrl = 'http://www.monsite.fr/ext/kcfinder/upload.php?opener=ckeditor&type=flash'; config.toolbarGroups = [ { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] }, { name: 'forms' }, { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] }, { name: 'links' }, { name: 'insert' }, { name: 'styles' }, { name: 'colors' }, { name: 'tools' }, { name: 'others' }, { name: 'about' } ]; config.removeButtons = 'Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript'; config.removeDialogTabs = 'link:advanced'; }; ext/kcfinder/config.php Code $_CONFIG = array( 'disabled' => false, 'denyZipDownload' => false, 'denyUpdateCheck' => false, 'denyExtensionRename' => false, 'theme' => "oxygen", 'uploadURL' => HTTP_SERVER . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES, 'uploadDir' => "", 'dirPerms' => 0755, 'filePerms' => 0644, 'access' => array( 'files' => array( 'upload' => true, 'delete' => true, 'copy' => true, 'move' => true, 'rename' => true ), 'dirs' => array( 'create' => true, 'delete' => true, 'rename' => true ) ), 'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl", 'types' => array( // CKEditor & FCKEditor types 'files' => "", 'flash' => "swf", 'images' => "*img", // TinyMCE types 'file' => "", 'media' => "swf flv avi mpg mpeg qt mov wmv asf rm", 'image' => "*img", ), 'filenameChangeChars' => array(/* ' ' => "_", ':' => "." */), 'dirnameChangeChars' => array(/* ' ' => "_", ':' => "." */), 'mime_magic' => "", 'maxImageWidth' => 0, 'maxImageHeight' => 0, 'thumbWidth' => 100, 'thumbHeight' => 100, 'thumbsDir' => ".thumbs", 'jpegQuality' => 90, 'cookieDomain' => "", 'cookiePath' => "", 'cookiePrefix' => 'KCFINDER_', // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION '_check4htaccess' => true, //'_tinyMCEPath' => "/tiny_mce", '_sessionVar' => &$_SESSION['KCFINDER'], //'_sessionLifetime' => 30, //'_sessionDir' => "/full/directory/path", //'_sessionDomain' => ".mysite.com", //'_sessionPath' => "/my/path", ); Pour les balises, j'ai checké les fichiers css pour vérifier qu'il n'y ait pas de conflit entre des définitions de balise <p> par exemple et apparemment ça ne viendrait pas de là. Il doit y avoir des conflits qui me dépassent... Auriez-vous un conseil à me donner ? Merci !!! Ce message a été modifié par equisol - 13 Jun 2014, 10:57. -------------------- Goo69
|
|
29 Apr 2014, 18:39
Message
#2
|
|
Ceinture noire OSC Groupe : TechDev Messages : 2757 Inscrit : 9-September 08 Lieu : Douai Membre no 22915 |
|
|
13 Jun 2014, 10:53
Message
#3
|
|
Ceinture jaune+ OSC Groupe : Membres Messages : 124 Inscrit : 7-November 07 Lieu : Lyon Membre no 19668 |
Merci chti_poupon et sorry pour le délai de réponse.
Après avoir tout repris à zéro (nouvelle 2.3 et réinstallation de la contribution ci-dessus), tout est rentré dans l'ordre. Il suffit de suivre point par point la méthode décrite dans "install_ckeditor + image upload.txt" et tout fonctionne à merveille, aussi bien côté admin que public. -------------------- Goo69
|
|
Version bas débit | Nous sommes le : 28th March 2024 - 16:46 |
Ce site est déclaré auprès de la commision Nationale de l'Informatique et des Libertés (déclaration n°: 1043896) |