ANyone here familiar with fckeditor?

I already had fckeditor installed on my server and running fine. But I redesigned my website and but using the same code as before only now the editor does not show up and I am getting this javascript error message:

Line: 91
Char: 292
Error: 'undefined' is null or not an object
Code: 0
URL: http://www.mysite.com/fckeditor/editor/fckeditor.html?
        InstanceName=content&MyToolbar

I have this on my form:

<?php
$oFCKeditor->BasePath = '/fckeditor/' ;
$oFCKeditor = new FCKeditor('content') ;
$oFCKeditor->ToolbarSet = 'MyToolbar' ;
$oFCKeditor->Height = '400' ;
$oFCKeditor->Value = $content ;
$oFCKeditor->Create() ;
?>

And this on top of my page above the html:

include('fckeditor/fckeditor.php');

This is the toolbar I created in the fckconfig.js file (no comma after last row. I also cleared my browser's cache.):

FCKConfig.ToolbarSets["MyToolbarNew"] = [
        ['Cut','Copy'],
        ['Undo','Redo','-','Bold','Italic','Underline'],
        '/',
        ['OrderedList','UnorderedList','-','Outdent','Indent'],
        ['Link','Unlink','-','SpellCheck']
] ;

Any ideas as to what could be the problem?

    I use the editor frequently and have found caching of the javascript to be a real pain when I make changes. Clearing my browser cache and firewall (squid) cache generally repairs it.

    {Edited -
    You have changed the toolbar set name, but you still call the old one

    $oFCKeditor->ToolbarSet = 'MyToolbar' ;

    and

    FCKConfig.ToolbarSets["MyToolbarNew"] = [

    ]

    Larry

      Write a Reply...