Salut,
J'ai utilisé la version 2.6.2 de FCKeditor que j'ai téléchargé sur le site et installé sans aucune modif dans magento.
Ce n'est donc pas tres utile que je la reposte ici.
Au niveau implémentation je n'ai pas touché au core magento, j'ai juste modifié le \app\design\adminhtml\default\montemplate\page\head.phtml ou j'ai collé en fin du script :
| Code : |
<?php $pages=array('cms_page'=>array('page_content'),'cms_block'=>array('block_content'),
'catalog_product'=>array('description','short_description') ) ?>
<?php foreach (array_keys($pages) as $page) : ?>
<?php if(stristr($_SERVER["REQUEST_URI"], $page)) : ?>
<script type="text/javascript" src="<?php echo $this->getJsUrl()?>fckeditor/fckeditor.js" > </script>
<script type="text/javascript">
window.onload = function()
{
<?php foreach ($pages[$page] as $elm): ?>
if (document.getElementById('<?php echo $elm ?>')) {
var oFCKeditor = new FCKeditor('<?php echo $elm ?>') ;
oFCKeditor.BasePath = "<?php echo $this->getJsUrl()?>fckeditor/" ;
oFCKeditor.Height = 300 ;
oFCKeditor.Width = 600 ;
oFCKeditor.ReplaceTextarea();
}
<?php endforeach; ?>
}
</script>
<?php break; ?>
<?php endif; ?>
<?php endforeach; ?> |
Dans quelle zone du back-end as tu ce souci ( produit, cms, block ???)
poste moi si tu veux le code source que tu tapes et le code html généré par fckeditor et je testerais de mon coté.