Hello,
I used to use FCKEditor with the image tool (for upload images). Now I see the great new CKEditor, but I need to add it the CKFinder.
I have successfully intalled both! But there is a *Bug* when I wanto "Modify" information from a database.
This data have HTML Code and WORKS FINE without CKFinder.
Code working without CKFinder, only CKEditor
<textarea name="Contentido" class="ckeditor" id="Contenido"><cfoutput>#sc1.Contenido#</cfoutput></textarea>
Code with CKFinder
<textarea name="Contenido" cols="99%" rows="10" id="Contenido"></textarea>
<script type="text/javascript">
if ( typeof CKEDITOR == 'undefined' )
{
document.write(
'Error Message' ) ;
}
else
{
var editor = CKEDITOR.replace( 'Contenido' );
editor.setData( '<cfoutput>#sc1.Contenido#</cfoutput>' );
CKFinder.SetupCKEditor( editor, '../../' ) ;
}
</script>
****************************************
As you can see, the problem is that in CKFinder, we have to put the Data into a JavaScript Line
All will be great if I might use the same code (with CKEditor) but having the CKFinder too.
I have attached some image that I get with this!
PLEASE HELP ME!! I need to use the CKEditor with CKFinder
Thanks
Luis Enrique
I used to use FCKEditor with the image tool (for upload images). Now I see the great new CKEditor, but I need to add it the CKFinder.
I have successfully intalled both! But there is a *Bug* when I wanto "Modify" information from a database.
This data have HTML Code and WORKS FINE without CKFinder.
Code working without CKFinder, only CKEditor
<textarea name="Contentido" class="ckeditor" id="Contenido"><cfoutput>#sc1.Contenido#</cfoutput></textarea>
Code with CKFinder
<textarea name="Contenido" cols="99%" rows="10" id="Contenido"></textarea>
<script type="text/javascript">
if ( typeof CKEDITOR == 'undefined' )
{
document.write(
'Error Message' ) ;
}
else
{
var editor = CKEDITOR.replace( 'Contenido' );
editor.setData( '<cfoutput>#sc1.Contenido#</cfoutput>' );
CKFinder.SetupCKEditor( editor, '../../' ) ;
}
</script>
****************************************
As you can see, the problem is that in CKFinder, we have to put the Data into a JavaScript Line
All will be great if I might use the same code (with CKEditor) but having the CKFinder too.
I have attached some image that I get with this!
PLEASE HELP ME!! I need to use the CKEditor with CKFinder
Thanks
Luis Enrique
Re: * BUG * With Coldfusion Integration
Be careful with the name of the textarea (now it's different than its id), and the path that you use in the call to SetupCKEditor. Look at the samples if you are unsure, just remember that if you pass "null" instead of an instance the function will work for every instance on the page.
Re: * BUG * With Coldfusion Integration
Re: * BUG * With Coldfusion Integration
NOW ITS WORKING ALFONSO
<textarea name="Contenido" cols="99%" rows="10" class="ckeditor" id="Contenido"><cfoutput>#sc1.Contenido#</cfoutput></textarea>
<script type="text/javascript">
CKFinder.SetupCKEditor( null, 'ckfinder/' ) ;
</script>
Thanks a lot!!
Luis Enrique
P.D. I am from Mexico and I see that you are in Spain... Do u speak spanish?
Re: * BUG * With Coldfusion Integration
Yes, but it's better to use English in these forums as there is people from all around the world.