문제

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

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top