CodeIgniter Forums

Full Version: Implentation of FCKeditor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]rash[/eluser]
Can anyone help me that how can i implement the fckeditor in my code page. To show the editor the code is
Code:
<?php
   include("fckeditor/fckeditor.php");
   $oFCKeditor = new FCKeditor('notes') ;
$oFCKeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Value  = "";
$oFCKeditor->Width  = '700' ;
$oFCKeditor->Height = '450' ;
$oFCKeditor->Create() ;
  
?>

Whereever i m trying for
Code:
include, include_once, require, require_once
function but it shows the following error :

Code:
Warning: require(libs/fckeditor.php) [function.require]: failed to open stream: No such file or directory in D:\wamp\www\mvc\index.php on line 8

Please helpme, its urgent.....

Thanks in advance

El Forum

[eluser]InsiteFX[/eluser]
Create it to a CI library then load it using CI

El Forum

[eluser]rash[/eluser]
Hello PM InsiteFX

I am not that much experience in mvc format that i create a library...

Is there any reference or something then please give help me...

El Forum

[eluser]InsiteFX[/eluser]
See this thread:

FCKEditor

How to install FCKEditor

I do not use this one anymore, I use the newer CKEditor now.

El Forum

[eluser]ivantcholakov[/eluser]
Code:
include("fckeditor/fckeditor.php");

This relative path is not resolved well, obviously. I would try an absolute path, something like this:

Code:
require FCPATH.'additional/path/here/fckeditor/fckeditor.php';

or (because I don't know where the file actually is):

Code:
require APPPATH.'additional/path/here/fckeditor/fckeditor.php';

Try to calculate somehow an absolute path and use it.

El Forum

[eluser]rash[/eluser]
k, thank u for the reply....

i will try it.