Question

Hi I have problem with old FCK editor 2.3.2 in new firefox 17, there is js error: "TypeError: FCKeditorAPI is undefined". I have tried solution with FCKeditor_IsCompatibleBrowser return always true, but it doesnt work, thanks.

Was it helpful?

Solution

Got the same problem but found a fix on Bugzilla. See comment 8 and make sure you paste into the correct position within the line. Worked for me.

https://bugzilla.mozilla.org/show_bug.cgi?id=814019

OTHER TIPS

In file fckeditor\fckeditor_php5.php, replace return ($iVersion >= 20030210) ; to return true ;

function FCKeditor_IsCompatibleBrowser()
{
    [...]
    else if ( strpos($sAgent, 'Gecko/') !== false )
    {
        $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ;
        return true ;
        //return ($iVersion >= 20030210) ;

    }
   [...]
}

The solution is downloading CKEditor http://ckeditor.com/download.

Then, puts the code :

<script type="text/javascript" src="ckeditor/ckeditor.js"></script> 

and the class="ckeditor" in textareas.

Ex :

<textarea cols="80" class="ckeditor" id="editeur" name="editeur" rows="10"></textarea>

it will works and you will be happy ! :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top