Hey, i'm building an ContentManagementSystem with fck in it...
But now i have a little problem... I already searched the net, but I couldn't find an answer...
To show fck, i create (with javascript) a new div on top of and in that div, there's a form with fck... When i let open fck te first, it works, but when i do it a second time, i get an javascript error:
Error: FCKTools is not defined
Source File: http://www.piro.ws/pcms/fck/editor/js/f ... de_gecko_2. js
Line: 20
You can see the page on http://www.piro.ws/pcms/admin
(username: tester, pass: test)
and then you have to go to the second tab ("Pagina's") and there you have to click on a lorem ipsum text to display fck, and when that is done, you have to click another time on a lorem ipsum text... And you will see that FCK doesn't load the second time...
Thanks in advance
Mon, 08/15/2005 - 02:04
#1
RE: Restart/stop FCK?
RE: Restart/stop FCK?
Hmm, that's not normal...
I have now removed the protection...
The page is: http://www.piro.ws/pcms/admin/page.php
RE: Restart/stop FCK?
It looks like you've fixed this - can you tell me how you did it as I am having a similar problem ?
Thanks a lot!
RE: Restart/stop FCK?
I think that i just need to stop all the running 'services' from fck, before i open it again...
RE: Restart/stop FCK?
Hmm... is it related to this issue at all:
https://sourceforge.net/forum/message.p ... id=3290743
RE: Restart/stop FCK?
Yes.. I think the problem is fixed...


__FCKeditorNS = null;
works for me
Maybe it helps also to solve your problem ...
function deleteBox(){
if(document.getElementById('fckBox')){
var box = document.getElementById('fckBox');
box.innerHTML = '';
box.style.display = "none";
document.body.removeChild(box);
__FCKeditorNS = null;
}
}
RE: Restart/stop FCK?
This should really be added to the docs somewhere, and maybe a function named reset() or cleanup() should be added to the API just to make things more explicit.
One minor issue: I think FCKeditor will still leave behind a growing list of iframes in the DOM (these iframes hold the list of styles available, i think: "normal", "formatted", "address" and so on. These have to be cleaned up manually (unless someone knows of a good function).
anyway - glad its fixed it!
RE: Restart/stop FCK?
men thank you very much for this... It help me a lot and my boss was very happy
RE: Restart/stop FCK?
I'm new to FCKEDITOR. Where exactly do I put this "deleteBox" function? and from where do I call it?