Question

I'm trying to intergrate the fckeditor filemanager into the newest ckeditor. I'm following a little tutorial you can find here
http://www.mixedwaves.com/2010/02/integrating-fckeditor-filemanager-in-ckeditor/

I added the replace links as suggested. and changed my config.php to enable the filemanager.

The problem is i get an error in ckeditor.js on line 252
the error is TypeError: b is undefined

what is causing this?

EDIT
when i do: document.write(b.value);
i get the right output

Was it helpful?

Solution

The answer for the question is very simple:)
give your textarea an ID

Old:
<div id='ckeditor_div' style='display:none;'><textarea class='ckeditor' style='display:inline-block;' name='tooltip_info'>". $tooltip['tip'] ."</textarea></div>

New:
<div id='ckeditor_div' style='display:none;'><textarea id='ckeditor' class='ckeditor' style='display:inline-block;' name='tooltip_info'>". $tooltip['tip'] ."</textarea></div>

as you can see i added id='ckeditor' in the textarea

OTHER TIPS

This error also appears when you more than one instance of CkEditor trying to use the same element. Just make sure you aren't using " CKEDITOR.replace " more than once on the same element. In my case, I had to remove that line from the config.js

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