Hi everybody,
I used to have an old version (several months) of CKEditor on my site, and it worked perfectly. Though, I thought it was a good idea to upgrade my version, but I have a BIG problem : with the new versions (3.5 and nightly), my textareas just vanish !
Here is my code (HTML4, PHP5) :
Here is my config.js :
Of course, config.js, css01.css and ckeditor.js are where they are supposed to be (and I have not made any change)...
I'm quite desperate, why doesn't it work ?
I used to have an old version (several months) of CKEditor on my site, and it worked perfectly. Though, I thought it was a good idea to upgrade my version, but I have a BIG problem : with the new versions (3.5 and nightly), my textareas just vanish !
Here is my code (HTML4, PHP5) :
<head>
......
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
</head>
<body>
........
<textarea name="descr">';
if ($_SESSION['descr']!='')
{
echo $_SESSION['descr'];
}
else
{
echo $_SESSION['descrini'];
}
echo '</textarea>
<script type="text/javascript">
CKEDITOR.replace( \'descr\',
{
customConfig : \'ckeperso/config.js\',
height: 100,
resize_enabled:true,
resize_maxWidth:\'%\',
contentsCss : \'ckeperso/css01.css\'
});
Here is my config.js :
CKEDITOR.editorConfig = function( config )
{
config.language = 'fr';
config.toolbar = 'outils';
config.toolbar_outils =
[
['Font','FontSize','Format'],
['Bold','Italic','Underline','Strike'],
['TextColor','BGColor'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['Subscript','Superscript'],
['Link','Unlink'],
['Table','HorizontalRule','Smiley','SpecialChar'],
['Cut','Copy','Paste','PasteText','PasteFromWord'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
];
config.removePlugins = 'elementspath' ;
config.enterMode = CKEDITOR.ENTER_P;
config.shiftEnterMode = CKEDITOR.ENTER_BR;
config.fontSize_sizes='Minuscule/xx-small;Très petit/x-small;Petit/small;Moyen/medium;Gros/large;Très gros/x-large;Énorme/xx-large';
config.format_tags='p;h1;h2;h3;h4';
config.toolbarCanCollapse = false;
};Of course, config.js, css01.css and ckeditor.js are where they are supposed to be (and I have not made any change)...
I'm quite desperate, why doesn't it work ?

Re: Problem with new versions
Re: Problem with new versions
Re: Problem with new versions
If I had any errors or warnings, I would have told it ! I have not the faintest idea of what I should have checked or tried since my code (which is very simple) used to work with a previous version. I have copied/pasted my program... What else could I say ???
And I have read the documentation...
Re: Problem with new versions
Re: Problem with new versions
Re: Problem with new versions
Old 3.? version
3.4.3 version
3.5 version
Re: Problem with new versions
The 3.4.3 has a corrupted ckeditor.js and shows an error (3 in fact) while loading the page. Have you used filezilla to upload the files?
Re: Problem with new versions
Re: Problem with new versions
http://www.lgv.on-web.fr/ckeditornouv/c ... ?t=B0C84VH
Re: Problem with new versions
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; config.language = 'fr'; config.toolbar = 'outils'; config.toolbar_outils = [ ['Font','FontSize','Format'], ['Bold','Italic','Underline','Strike'], ['TextColor','BGColor'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['Subscript','Superscript'], ['Link','Unlink'], ['Table','HorizontalRule','Smiley','SpecialChar'], ['Cut','Copy','Paste','PasteText','PasteFromWord'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ]; config.removePlugins = 'elementspath' ; // Possibilité de faire un retour à la ligne simple config.enterMode = CKEDITOR.ENTER_P; config.shiftEnterMode = CKEDITOR.ENTER_BR; config.fontSize_sizes='Minuscule/xx-small;Très petit/x-small;Petit/small;Moyen/medium;Gros/large;Très gros/x-large;Énorme/xx-large'; config.format_tags='p;h1;h2;h3;h4'; config.toolbarCanCollapse = false; };body { /* Font */ font-family: Optimum,Helvetica,Verdana,sans-serif; font-size: 12px; /* Text color */ color: #222; /* Remove the background color to make it transparent */ background-color: rgb(240,250,250); } html { /* #3658: [IE6] Editor document has horizontal scrollbar on long lines To prevent this misbehavior, we show the scrollbar always */ _overflow-y: scroll } img:-moz-broken { -moz-force-broken-image-icon : 1; width : 24px; height : 24px; } img, input, textarea { cursor: default; }<? echo'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head>... <script type="text/javascript" src="../ckeditornouv/ckeditor.js"></script> </head> <body> <h1>CKEDITOR 3.5</h1> <div class="sub"> <h3>Titre de l\'évènement</h3> </div> <div class="sub"> <h3>Descriptif de votre évènement</h3> <p class="libelle">1er paragraphe (facultatif)<br><em>(Limite 3000 caractères, balises HTML comprises)</em></p> <textarea name="texte1"> </textarea> <!-- Démarre le javascript de CKEditor --> <!-- Remplace les zones de textes par des fenêtres CKEditor --> <script type="text/javascript"> CKEDITOR.replace( \'texte1\', { customConfig : \'ckeperso/config.js\', height: 200, resize_enabled:true, resize_maxWidth:\'%\', contentsCss : \'ckeperso/css01.css\' }); <!-- Fin du remplacement des zones de textes par des fenêtres CKEditor--> </script> </div> <div class="sub"> <h3>Descriptif de votre évènement</h3> <p class="libelle">2ème paragraphe (facultatif)<br><em>(Limite 3000 caractères, balises HTML comprises)</em></p> <textarea name="texte2"> </textarea> <!-- Démarre le javascript de CKEditor --> <!-- Remplace les zones de textes par des fenêtres CKEditor --> <script type="text/javascript"> CKEDITOR.replace( \'texte2\', { customConfig : \'ckeperso/config.js\', height: 200, resize_enabled:true, resize_maxWidth:\'%\', contentsCss : \'ckeperso/css01.css\' }); <!-- Fin du remplacement des zones de textes par des fenêtres CKEditor--> </script> </div></body></html>'; ?>Re: Problem with new versions
Re: Problem with new versions