Ticket #249 (new Defect)

Opened 7 months ago

Last modified 4 months ago

Ressources - tag htmleditor

Reported by: ilmir Assigned to:
Priority: Critical Milestone: 3.1.0
Component: Tags Version: 3.0.2
Keywords: resource, htmleditor Cc:

Description

Le tag htmleditor ne prend pas compte du changement dans la gestion des ressources :

22 //check the initialisation 23 if (! $_init){ 24 $path = CopixModule::getPath ('htmleditor').COPIX_CLASSES_DIR; 25 $htmlPath = CopixUrl::get ().'js/FCKeditor/'; 26 require_once( $path.'fckeditor.php' ); 27 $_init = true; 28 }

au lieu d'à priori 25 $htmlPath = _resource('js/FCKeditor/');

Cela ne règle pas tout le problème car à priori _resource ne gère pas les dossiers, vu qu'il semble enlever le "/" final (mais il trouve le dossier au bon endroit). Du coup ça fait une erreur "commun/js/FCKeditoreditor/fckeditor.html was not found on this server."

donc soit améliorer _resource pour qu'il gère également les répertoires, soit un petit : 25 $htmlPath = _resource('js/FCKeditor/')."/";

Attachments

Change History

04/25/08 08:25:26 changed by ilmir

Correction de la mise en page :) :

Le tag htmleditor ne prend pas compte du changement dans la gestion des ressources :

22 //check the initialisation 
23 if (! $_init){ 
24   $path = CopixModule::getPath ('htmleditor').COPIX_CLASSES_DIR; 
25   $htmlPath = CopixUrl::get ().'js/FCKeditor/'; 
26   require_once( $path.'fckeditor.php' );
27   $_init = true; 
28 }

au lieu d'à priori

25   $htmlPath = _resource('js/FCKeditor/');

Cela ne règle pas tout le problème car à priori _resource ne gère pas les dossiers, vu qu'il semble enlever le "/" final (mais il trouve le dossier au bon endroit). Du coup ça fait une erreur "commun/js/FCKeditoreditor/fckeditor.html was not found on this server."

donc soit améliorer _resource pour qu'il gère également les répertoires, soit un petit :

25   $htmlPath = _resource('js/FCKeditor/')."/";

05/14/08 10:49:26 changed by bricef

Le module WBE est censé pouvoir remplacer (à terme) html editor ou proposer une alterntive. Le problème pour le moment est que l'utilisation de _resource pour FCKEditor fonctionne très bien en mode prepend mais pas avec le mode par défaut.

A voir donc.

07/09/08 20:16:59 changed by anonymous

kkkkk


Add/Change #249 (Ressources - tag htmleditor)